/* ====================================
   라이프 패스 넘버 - 전용 스타일시트
==================================== */

/* 숫자별 테마 색상 */
:root {
    --number-1: #E74C3C;  /* 빨강 - 리더 */
    --number-2: #F39C12;  /* 주황 - 협력자 */
    --number-3: #F1C40F;  /* 노랑 - 표현자 */
    --number-4: #27AE60;  /* 초록 - 건설자 */
    --number-5: #3498DB;  /* 파랑 - 자유인 */
    --number-6: #9B59B6;  /* 보라 - 보호자 */
    --number-7: #1ABC9C;  /* 청록 - 탐구자 */
    --number-8: #34495E;  /* 남색 - 성취자 */
    --number-9: #E91E63;  /* 분홍 - 인도주의자 */
    --number-11: #8E44AD; /* 진보라 - 마스터 11 */
    --number-22: #2C3E50; /* 차콜 - 마스터 22 */
    --number-33: #D4AF37; /* 골드 - 마스터 33 */
}

/* Intro Box */
.intro-box {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border-left: 5px solid #DEB564;
}

.intro-box h2 {
    color: #8B6914;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.intro-box p {
    color: #5C4A1F;
    line-height: 1.8;
    margin: 0;
}

/* Form Styling */
.lifepath-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lifepath-form h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.lifepath-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.lifepath-form .form-group {
    display: flex;
    flex-direction: column;
}

.lifepath-form label {
    color: #5C4A1F;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.lifepath-form input {
    padding: 15px;
    border: 2px solid #DEB564;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    background: #FFFAF0;
    transition: all 0.3s ease;
}

.lifepath-form input:focus {
    outline: none;
    border-color: #8B6914;
    box-shadow: 0 0 15px rgba(222, 181, 100, 0.4);
}

.lifepath-form .submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lifepath-form .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
}

.lifepath-form .submit-btn .btn-icon {
    font-size: 1.3rem;
}

/* Result Section */
.result-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Number Display */
.number-display {
    text-align: center;
    margin-bottom: 40px;
}

.number-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--number-1), #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
    animation: pulse-glow 2s infinite;
    position: relative;
}

.number-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 15px 50px rgba(231, 76, 60, 0.6);
    }
}

.number-value {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.number-title {
    color: #5C4A1F;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.calculation-text {
    color: #888;
    font-size: 0.95rem;
}

/* Result Card */
.result-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
}

.card-header {
    background: linear-gradient(135deg, var(--number-1), #c0392b);
    padding: 35px;
    text-align: center;
    color: white;
}

.card-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-title {
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.card-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.card-body {
    padding: 35px;
}

/* Keywords Section */
.keywords-section {
    margin-bottom: 30px;
}

.keywords-section h4 {
    color: #5C4A1F;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    color: #8B6914;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #DEB564;
}

/* Info Sections */
.info-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-section h4 {
    color: #5C4A1F;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.info-section p {
    color: #555;
    line-height: 1.8;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.strength-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
}

.challenge-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: #E74C3C;
    font-weight: bold;
    background: #FFEBEE;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Compatible Numbers */
.compatible-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.compatible-section h4 {
    color: #5C4A1F;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.compatible-numbers {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.compatible-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.compatible-num:hover {
    transform: scale(1.1);
}

/* Career Tags */
.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.career-tag {
    background: #f0f0f0;
    color: #555;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Lucky Section */
.lucky-section {
    background: linear-gradient(135deg, #FFF8DC, #FFFAF0);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.lucky-section h4 {
    color: #8B6914;
    margin-bottom: 20px;
    text-align: center;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.lucky-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.lucky-label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.lucky-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.lucky-value {
    display: block;
    color: #5C4A1F;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Advice Section */
.advice-section {
    background: linear-gradient(135deg, #E8F8F5, #D1F2EB);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #1ABC9C;
}

.advice-section h4 {
    color: #16A085;
    margin-bottom: 12px;
}

.advice-text {
    color: #2C3E50;
    font-style: italic;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* All Numbers Section */
.all-numbers-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.all-numbers-section h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.number-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.number-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.number-item.active {
    border-color: #5C4A1F;
    transform: scale(1.05);
}

.number-item .num {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.number-item .name {
    font-size: 0.8rem;
    color: white;
    opacity: 0.9;
}

/* Number item backgrounds */
.number-item[data-num="1"] { background: linear-gradient(135deg, var(--number-1), #c0392b); }
.number-item[data-num="2"] { background: linear-gradient(135deg, var(--number-2), #d68910); }
.number-item[data-num="3"] { background: linear-gradient(135deg, var(--number-3), #d4ac0d); }
.number-item[data-num="4"] { background: linear-gradient(135deg, var(--number-4), #1e8449); }
.number-item[data-num="5"] { background: linear-gradient(135deg, var(--number-5), #2874a6); }
.number-item[data-num="6"] { background: linear-gradient(135deg, var(--number-6), #7d3c98); }
.number-item[data-num="7"] { background: linear-gradient(135deg, var(--number-7), #148f77); }
.number-item[data-num="8"] { background: linear-gradient(135deg, var(--number-8), #1c2833); }
.number-item[data-num="9"] { background: linear-gradient(135deg, var(--number-9), #c2185b); }
.number-item[data-num="11"] { background: linear-gradient(135deg, var(--number-11), #6c3483); }
.number-item[data-num="22"] { background: linear-gradient(135deg, var(--number-22), #17202a); }
.number-item[data-num="33"] { background: linear-gradient(135deg, var(--number-33), #b7950b); }

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.reset-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
}

/* Dynamic color classes for number circle and card header */
.number-theme-1 { --theme-color: var(--number-1); --theme-dark: #c0392b; }
.number-theme-2 { --theme-color: var(--number-2); --theme-dark: #d68910; }
.number-theme-3 { --theme-color: var(--number-3); --theme-dark: #d4ac0d; }
.number-theme-4 { --theme-color: var(--number-4); --theme-dark: #1e8449; }
.number-theme-5 { --theme-color: var(--number-5); --theme-dark: #2874a6; }
.number-theme-6 { --theme-color: var(--number-6); --theme-dark: #7d3c98; }
.number-theme-7 { --theme-color: var(--number-7); --theme-dark: #148f77; }
.number-theme-8 { --theme-color: var(--number-8); --theme-dark: #1c2833; }
.number-theme-9 { --theme-color: var(--number-9); --theme-dark: #c2185b; }
.number-theme-11 { --theme-color: var(--number-11); --theme-dark: #6c3483; }
.number-theme-22 { --theme-color: var(--number-22); --theme-dark: #17202a; }
.number-theme-33 { --theme-color: var(--number-33); --theme-dark: #b7950b; }

.number-circle.themed {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
}

.card-header.themed {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-dark));
}

/* Responsive */
@media (max-width: 768px) {
    .lifepath-form {
        padding: 25px;
    }
    
    .lifepath-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .number-circle {
        width: 120px;
        height: 120px;
    }
    
    .number-value {
        font-size: 3rem;
    }
    
    .card-header {
        padding: 25px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 25px;
    }
    
    .lucky-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .number-item {
        padding: 15px 5px;
    }
    
    .number-item .num {
        font-size: 1.5rem;
    }
    
    .number-item .name {
        font-size: 0.7rem;
    }
    
    .compatible-numbers {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}







