/* ===== 전역 스타일 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 헤더 ===== */
.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 10px;
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== 섹션 공통 스타일 ===== */
section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* ===== 소개 섹션 ===== */
.intro-card h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-card h2 i {
    color: var(--primary-color);
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin: 0;
}

/* ===== 진단 카드 ===== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.assessment-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

.assessment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pre-card {
    border-color: var(--primary-color);
}

.post-card {
    border-color: var(--secondary-color);
}

.result-card {
    border-color: var(--accent-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.pre-card .card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.post-card .card-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.result-card .card-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.assessment-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-info {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info li {
    padding: 8px 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-info li i {
    color: var(--secondary-color);
}

/* ===== 버튼 스타일 ===== */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-info {
    background: var(--accent-color);
    color: white;
}

.btn-info:hover {
    background: #d97706;
}

.btn-admin {
    background: var(--dark-color);
    color: white;
}

.btn-admin:hover {
    background: #0f172a;
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

/* ===== 가이드 섹션 ===== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.guide-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.guide-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.guide-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.guide-card p {
    font-size: 0.95rem;
    color: var(--gray-color);
    line-height: 1.6;
}

/* ===== 관리자 섹션 ===== */
.admin-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
}

.admin-card {
    text-align: center;
    color: white;
}

.admin-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.admin-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.admin-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ===== 모달 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--gray-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--dark-color);
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-description {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-buttons .btn {
    flex: 1;
}

/* ===== 푸터 ===== */
.footer {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.footer p {
    color: var(--gray-color);
    margin: 5px 0;
}

.footer-note {
    font-size: 0.9rem;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    .logo {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo i {
        font-size: 2.5rem;
    }

    section {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
