/* 막도장 생성기 스타일시트 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
}

.header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

/* 도구 섹션 스타일 */
.tool-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-area {
    text-align: center;
    margin-bottom: 20px;
}

.input-area label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.input-area input {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 200px;
    margin-right: 10px;
}

.input-area button {
    padding: 12px 24px;
    font-size: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-area button:hover {
    background: #5a67d8;
}

.input-area button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 안내 박스 스타일 */
.info-box {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box h3 {
    margin-top: 0;
    color: #0c5460;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

/* 결과 영역 스타일 */
.result-area {
    text-align: center;
    margin-top: 20px;
}

.result-area h2 {
    color: #333;
    margin-bottom: 15px;
}

#imageContainer {
    margin: 20px 0;
    min-height: 100px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#stampImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#downloadBtn {
    padding: 10px 20px;
    font-size: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#downloadBtn:hover {
    background: #218838;
}

/* 로딩 및 에러 메시지 */
#loadingIndicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

/* 콘텐츠 섹션 스타일 */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section p {
    color: #555;
    margin-bottom: 15px;
}

/* 가이드 그리드 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guide-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 1.1em;
}

.guide-item p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95em;
}

/* 하이라이트 텍스트 */
.highlight {
    color: #b41414;
    font-weight: bold;
}

.highlight-yellow {
    background-color: #ffeb3b;
    color: #b41414;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* 광고 섹션 */
.ad-section {
    margin: 40px 0;
    text-align: center;
}

/* FAQ 스타일 */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    font-weight: bold;
    color: #495057;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 15px 20px;
    background: white;
    color: #666;
    line-height: 1.6;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    background: white;
}

.custom-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .tool-section,
    .content-section {
        padding: 20px;
    }

    .input-area input {
        width: 150px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .guide-item {
        padding: 15px;
    }

    .faq-question,
    .faq-answer {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }

    .input-area input {
        width: 120px;
    }

    .input-area button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .tool-section,
    .content-section {
        padding: 15px;
    }
}