/* Section Pages Specific Styles */

/* Section Hero */
.section-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.section-hero .container {
    position: relative;
    z-index: 1;
}

.section-hero .icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    animation: sectionFloat 6s ease-in-out infinite;
}

@keyframes sectionFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.section-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.4;
}

/* Section Description */
.section-description {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 40px 0;
    position: relative;
}

.section-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.section-description .intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.section-description .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.section-description .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.section-description .feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.section-description .feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.section-description .feature-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-description .feature-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Calculators Grid for Sections */
.section-calculators {
    margin: 50px 0;
}

.section-calculators h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-calculators .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.section-calculator-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.section-calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.section-calculator-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.section-calculator-card:hover::before {
    left: 100%;
}

.section-calculator-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    position: relative;
}

.section-calculator-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-calculator-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.section-calculator-card .features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.section-calculator-card .features li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
}

.section-calculator-card .features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.section-calculator-card .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.section-calculator-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.section-calculator-card .btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Quick Access */
.quick-access {
    background: linear-gradient(135deg, var(--secondary-color), #45a049);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 50px 0;
    text-align: center;
}

.quick-access h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.quick-access p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.quick-access .actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-access .btn {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--white);
}

.quick-access .btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Responsive for Section Pages */
@media (max-width: 768px) {
    .section-hero {
        padding: 40px 0;
    }
    
    .section-hero h1 {
        font-size: 2rem;
    }
    
    .section-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        padding: 30px 24px;
    }
    
    .section-description::before {
        left: 24px;
    }
    
    .section-description h2 {
        font-size: 1.6rem;
    }
    
    .section-calculators-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-calculator-card {
        padding: 30px;
    }
    
    .quick-access {
        padding: 30px 24px;
    }
    
    .quick-access .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-access .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .section-hero .icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .section-calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .section-description .features-list {
        grid-template-columns: 1fr;
    }
}
