/* Personal Year Calculator Styles */

/* Hero + Calculator Section */
.hero-calculator-section {
    background: linear-gradient(135deg, #06122d 0%, #1e1b4b 50%, #06122d 100%);
    padding: var(--space-6xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    margin-bottom: var(--space-5xl);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Container */
.calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.calculator-card {
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.3) 0%, rgba(97, 97, 125, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.calculator-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 50px rgba(59, 130, 246, 0.2);
}

.calculator-title {
    font-family: var(--font-primary);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: var(--space-md);
}

.calculator-description {
    font-family: var(--font-secondary);
    font-size: clamp(14px, 2.5vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    font-family: var(--font-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select.form-input option {
    background: #1e293b;
    color: white;
    padding: 8px;
}

/* Calculate Button */
.btn-calculate {
    background: linear-gradient(135deg, #3435AA 0%, #5d5fef 50%, #3435AA 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    width: 100%;
    color: white;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    font-family: var(--font-secondary);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(52, 53, 170, 0.4);
    background: linear-gradient(135deg, #4546bb 0%, #6e70ff 50%, #4546bb 100%);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* Result Container */
.result-container {
    margin-top: var(--space-3xl);
    padding: var(--space-3xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    animation: slideInUp 0.6s ease-out;
}

.result-year-display {
    margin-bottom: var(--space-2xl);
}

.result-year-label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: var(--space-lg);
}

.result-number {
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    color: white;
    width: 120px;
    height: 120px;
    border: 3px solid #5560B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg) auto;
    box-shadow: 0 0 20px rgba(85, 96, 182, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.result-number.gold {
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.result-title {
    font-family: var(--font-secondary);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.result-brief {
    font-family: var(--font-secondary);
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.btn-read-more,
.btn-calculate-another {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 var(--space-sm);
}

.btn-read-more:hover,
.btn-calculate-another:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

/* Content Sections - Using common-sections.css */
/* Removed duplicate styles - they are now in common-sections.css */

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* Calculation Steps */
.calculation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.step-card {
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.15) 0%, rgba(97, 97, 125, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-3xl);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.step-number {
    font-family: sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    /* Remove circle/background */
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    display: block !important;
    box-shadow: none !important;
    margin-left: auto;
    margin-right: auto;
}

/* Unique colors for each step */
.step-card:nth-child(1) .step-number {
    color: #FFE5FE;
    text-shadow: 0 0 20px rgba(255, 229, 254, 0.5);
}

.step-card:nth-child(2) .step-number {
    color: #7CFCEB;
    text-shadow: 0 0 20px rgba(124, 252, 235, 0.5);
}

.step-card:nth-child(3) .step-number {
    color: #5CFEEE;
    text-shadow: 0 0 20px rgba(92, 254, 238, 0.5);
}

.step-card:nth-child(4) .step-number {
    color: #E5FFE5;
    text-shadow: 0 0 20px rgba(229, 255, 229, 0.5);
}

.step-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.step-card p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Example Box */
.example-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: var(--space-3xl);
    max-width: 600px;
    margin: 0 auto;
}

.example-box h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.example-content p {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

/* Number Meanings */
.meaning-card {
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.15) 0%, rgba(97, 97, 125, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-4xl);
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.meaning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.meaning-card.master-number::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.meaning-header {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.meaning-number {
    font-family: sans-serif;
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 900;
    line-height: 1;
    transition: all 0.3s ease;
    /* Override common-sections.css circle styles */
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    display: inline !important;
    box-shadow: none !important;
    flex-shrink: initial !important;
    margin: 0 !important;
}

/* Unique colors for each Personal Year number - matching stats design */
#year-1 .meaning-number { color: #FFE5FE; text-shadow: 0 0 20px rgba(255, 229, 254, 0.5); }
#year-2 .meaning-number { color: #7CFCEB; text-shadow: 0 0 20px rgba(124, 252, 235, 0.5); }
#year-3 .meaning-number { color: #5CFEEE; text-shadow: 0 0 20px rgba(92, 254, 238, 0.5); }
#year-4 .meaning-number { color: #E5FFE5; text-shadow: 0 0 20px rgba(229, 255, 229, 0.5); }
#year-5 .meaning-number { color: #FBCD6C; text-shadow: 0 0 20px rgba(251, 205, 108, 0.5); }
#year-6 .meaning-number { color: #FEE7FD; text-shadow: 0 0 20px rgba(254, 231, 253, 0.5); }
#year-7 .meaning-number { color: #5EDDFD; text-shadow: 0 0 20px rgba(94, 221, 253, 0.5); }
#year-8 .meaning-number { color: #CECDFE; text-shadow: 0 0 20px rgba(206, 205, 254, 0.5); }
#year-9 .meaning-number { color: #FFDBFE; text-shadow: 0 0 20px rgba(255, 219, 254, 0.5); }
#year-11 .meaning-number { color: #64D3FD; text-shadow: 0 0 20px rgba(100, 211, 253, 0.5); }
#year-22 .meaning-number { color: #FCE1BC; text-shadow: 0 0 20px rgba(252, 225, 188, 0.5); }

.meaning-title-group h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.meaning-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.meaning-description {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3xl);
}

.meaning-section {
    margin-bottom: 0;
}

/* Two-column layout for Opportunities & Challenges on desktop */
.meaning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.meaning-content .meaning-description {
    grid-column: 1 / -1;
}

.meaning-content .meaning-tips {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .meaning-content {
        grid-template-columns: 1fr;
    }

    .meaning-content .meaning-description,
    .meaning-content .meaning-tips {
        grid-column: 1;
    }
}

.meaning-section h4 {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: var(--space-lg);
}

.meaning-section ul,
.meaning-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meaning-section li,
.meaning-tips li {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    line-height: 1.6;
}

.meaning-section li::before,
.meaning-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #a78bfa;
    font-size: 1.5rem;
    line-height: 1;
}

.meaning-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.tips-do,
.tips-avoid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: var(--space-2xl);
}

.tips-do h4,
.tips-avoid h4 {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

/* Related Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.tool-card {
    background: linear-gradient(135deg, rgba(97, 97, 125, 0.15) 0%, rgba(97, 97, 125, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-3xl);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.tool-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.tool-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: var(--space-lg);
}

.tool-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.tool-card p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(85, 96, 182, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(85, 96, 182, 0.8);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-calculator-section {
        padding: var(--space-4xl) 0;
    }

    .calculator-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calculation-steps {
        grid-template-columns: 1fr;
    }

    .meaning-header {
        flex-direction: column;
        text-align: center;
    }

    .meaning-number {
        font-size: 2.5rem;
    }

    .meaning-tips {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .calculator-card {
        padding: 25px 15px;
    }

    .result-number {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
}
