/* ===========================
   Solar Production Calculator
   Modern Professional Theme
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Warm Solar */
    --solar-gold: #F59E0B;
    --solar-orange: #EA580C;
    --solar-amber: #D97706;
    
    /* Secondary Colors - Clean Energy */
    --energy-blue: #0EA5E9;
    --energy-cyan: #06B6D4;
    --energy-teal: #14B8A6;
    
    /* Accent Colors */
    --accent-green: #10B981;
    --accent-emerald: #059669;
    
    /* Neutrals */
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    
    /* Gradients */
    --gradient-solar: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    --gradient-energy: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-nature: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --gradient-light: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===========================
   Base Styles
   =========================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

/* Custom Scrollbar - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: var(--slate-800);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--solar-gold) 0%, var(--solar-orange) 100%);
    border-radius: 10px;
    border: 2px solid var(--slate-800);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--solar-orange) 0%, var(--solar-amber) 100%);
}

::-webkit-scrollbar-corner {
    background: var(--slate-800);
}

/* Custom Scrollbar - Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--solar-gold) var(--slate-800);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--solar-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--solar-gold);
    color: var(--slate-900);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--slate-800);
    background: #0f172a;
    background-image: 
        radial-gradient(at 20% 20%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 10%, rgba(251, 146, 60, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(45, 212, 191, 0.12) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(251, 113, 133, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;

/* Animated Floating Orbs */
.sun-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sun-animation::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb1 15s ease-in-out infinite;
    filter: blur(40px);
}

.sun-animation::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb2 18s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 100px) scale(1.1); }
    66% { transform: translate(50px, -50px) scale(0.9); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -80px) scale(1.15); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes sunFloat {
    0%, 100% { 
        transform: scale(1) translate(0, 0); 
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1) translate(-20px, 20px); 
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===========================
   Header Styles
   =========================== */
header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(251, 146, 60, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    justify-content: center;
}

/* CSS-only Sun Icon */
.sun-icon {
    width: 60px;
    height: 60px;
    position: relative;
    animation: rotateSun 20s linear infinite;
}

.sun-icon.small {
    width: 32px;
    height: 32px;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background: var(--gradient-solar);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.sun-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 42%, var(--solar-gold) 42%, var(--solar-gold) 58%, transparent 58%),
        linear-gradient(90deg, transparent 42%, var(--solar-gold) 42%, var(--solar-gold) 58%, transparent 58%),
        linear-gradient(45deg, transparent 44%, var(--solar-gold) 44%, var(--solar-gold) 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, var(--solar-gold) 44%, var(--solar-gold) 56%, transparent 56%);
    mask: radial-gradient(circle, transparent 35%, black 35%);
    -webkit-mask: radial-gradient(circle, transparent 35%, black 35%);
    border-radius: 50%;
}

@keyframes rotateSun {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--solar-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--slate-300);
    text-align: center;
    position: relative;
}

/* ===========================
   Main Content
   =========================== */
main {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 50%, #1a1a2e 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(251, 146, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    color: #f8fafc;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #fb923c, #f97316);
    border-radius: 2px;
}

h3 {
    color: #f1f5f9;
    margin: 1.5rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===========================
   Intro Section
   =========================== */
.intro-section {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(56, 189, 248, 0.1) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #fb923c, #38bdf8) 1;
    color: #cbd5e1;
}

.intro-section p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

/* ===========================
   Form Styles
   =========================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.location-group {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .form-group.location-group {
        grid-column: span 1;
    }
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.6);
    color: #f1f5f9;
}

.form-group input:focus {
    outline: none;
    border-color: #fb923c;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group small {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* ===========================
   Button Styles
   =========================== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-solar);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.2);
    margin: 0 auto;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary .btn-icon svg {
    width: 24px;
    height: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* ===========================
   Location Suggestions
   =========================== */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.suggestions-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    padding-left: 20px;
}

.suggestion-item .main-text {
    font-weight: 600;
    color: var(--slate-800);
}

.suggestion-item .sub-text {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.suggestion-item.loading,
.suggestion-item.no-results {
    color: var(--slate-500);
    font-style: italic;
    cursor: default;
}

.suggestion-item.loading:hover,
.suggestion-item.no-results:hover {
    background: none;
    padding-left: 16px;
}

/* ===========================
   Results Section
   =========================== */
.results-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.data-source-info {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-radius: var(--radius-md);
    border-left: 3px solid #38bdf8;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-daily { background: linear-gradient(145deg, #fff7ed 0%, #ffffff 100%); }
.card-monthly { background: linear-gradient(145deg, #ecfeff 0%, #ffffff 100%); }
.card-yearly { background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%); }
.card-sun { background: linear-gradient(145deg, #fefce8 0%, #ffffff 100%); }

.card-daily .card-glow { background: linear-gradient(90deg, #fb923c, #f97316); }
.card-monthly .card-glow { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.card-yearly .card-glow { background: linear-gradient(90deg, #34d399, #10b981); }
.card-sun .card-glow { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

.card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-500);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card .value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-daily .value { 
    background: var(--gradient-solar); 
    -webkit-background-clip: text;
    background-clip: text;
}
.card-monthly .value { 
    background: var(--gradient-energy); 
    -webkit-background-clip: text;
    background-clip: text;
}
.card-yearly .value { 
    background: var(--gradient-nature); 
    -webkit-background-clip: text;
    background-clip: text;
}
.card-sun .value { 
    background: linear-gradient(135deg, #F59E0B 0%, #14B8A6 100%); 
    -webkit-background-clip: text;
    background-clip: text;
}

.card .unit {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-top: 4px;
}

/* Chart Container */
.chart-container {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-top: 0;
    color: #f1f5f9;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

thead {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: var(--white);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

.content-section th {
    background: rgb(255 255 255 / 20%);
    color: #ffffff !important;
    font-weight: 600;
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

tbody tr:hover {
    background: rgba(251, 146, 60, 0.08);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Environmental Impact */
.impact-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(45, 212, 191, 0.1) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.impact-section h3 {
    margin-top: 0;
    color: #34d399;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.impact-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.4);
}

.impact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-nature);
    border-radius: 50%;
    color: var(--white);
}

.impact-icon svg {
    width: 24px;
    height: 24px;
}

.impact-label {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0 0 8px 0;
}

.impact-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 0;
}

.impact-unit {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin: 4px 0 0 0;
}

/* ===========================
   Content Section
   =========================== */
.content-section {
    color: #cbd5e1;
}

.content-section h2 {
    color: #f8fafc;
}

.content-section h3 {
    color: #e2e8f0;
    margin-top: 2rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #94a3b8;
}

.feature-list,
.benefits-list,
.tips-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li,
.benefits-list li,
.tips-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--white);
}

.feature-list li:last-child,
.benefits-list li:last-child,
.tips-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-solar);
    border-radius: 50%;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-nature);
    border-radius: 50%;
}

.tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--slate-300);
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

footer .keywords {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    main {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card .value {
        font-size: 2rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .sun-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===========================
   Loading State
   =========================== */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading .btn-icon svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--solar-gold);
    outline-offset: 2px;
}

/* ===========================
   Article Pages Styles
   =========================== */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--solar-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--solar-orange);
    text-decoration: underline;
}

/* Article Hero */
.article-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.2rem;
    background: var(--gradient-solar);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--slate-400);
    font-size: 0.95rem;
}

/* Article Content Enhancements */
.content-section article h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.content-section article h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--solar-gold);
}

.content-section article h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--energy-cyan);
}

.content-section article p {
    margin-bottom: 16px;
    color: var(--white);
}

.content-section article a {
    color: var(--solar-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-section article a:hover {
    color: var(--solar-orange);
    border-bottom-color: var(--solar-orange);
}

.content-section article ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section article ol li {
    margin-bottom: 10px;
    color: var(--white);
}

/* Related Articles Section */
.related-articles,
.quick-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.related-articles h2,
.quick-links h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--white);
}

.quick-links {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.article-card:visited {
    color: inherit;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--solar-gold);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
    text-decoration: none;
}

.article-card:active,
.article-card:focus {
    text-decoration: none;
    color: inherit;
    outline: 2px solid var(--solar-gold);
    outline-offset: 2px;
}

.article-card h3 {
    color: var(--solar-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-card:visited h3 {
    color: var(--solar-gold);
}

.article-card p {
    color: var(--slate-400);
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-card:visited p {
    color: var(--slate-400);
}

/* Footer Navigation */
.footer-nav {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.footer-nav a:hover {
    color: var(--solar-gold);
}

/* Article Tables */
.content-section .table-container {
    margin: 25px 0;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.content-section th,
.content-section td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.content-section th {
    background: rgba(245, 158, 11, 0.2);
    color: var(--solar-gold);
    font-weight: 600;
}

.content-section td {
    color: var(--slate-300);
}

.content-section tr:hover td {
    background: rgba(245, 158, 11, 0.05);
}

/* Responsive Article Styles */
@media (max-width: 768px) {
    .article-hero {
        padding: 25px 20px;
    }
    
    .article-hero h1 {
        font-size: 1.6rem;
    }
    
    .content-section article h2 {
        font-size: 1.4rem;
    }
    
    .content-section article h3 {
        font-size: 1.15rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section table {
        font-size: 0.85rem;
    }
    
    .content-section th,
    .content-section td {
        padding: 8px 10px;
    }
}

/* ===========================
   Article Images
   =========================== */
.article-image {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-image figcaption {
    background: rgba(15, 23, 42, 0.9);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--slate-400);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.article-image.float-right {
    float: right;
    max-width: 35%;
    margin: 10px 0 20px 30px;
}

.article-image.float-left {
    float: left;
    max-width: 35%;
    margin: 10px 30px 20px 0;
}

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-solar);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(245, 158, 11, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

/* ===========================
   Improved Link Styles
   =========================== */
a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.content-section a:not(.article-card):not(.btn-primary):not(.btn-secondary) {
    color: var(--solar-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.content-section a:not(.article-card):not(.btn-primary):not(.btn-secondary):hover {
    color: var(--solar-orange);
    text-decoration-color: var(--solar-orange);
}

/* ===========================
   Progress Bar (Reading Progress)
   =========================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-solar);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ===========================
   Selection Highlight
   =========================== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--white);
}

/* ===========================
   Smooth Image Loading
   =========================== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ===========================
   Interactive Hover Effects
   =========================== */
.card,
.article-card,
.impact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.article-card:hover,
.impact-card:hover {
    transform: translateY(-5px);
}

/* ===========================
   Mobile Scrollbar
   =========================== */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        border: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.article-image.full-width {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .article-image.float-right,
    .article-image.float-left {
        float: none;
        max-width: 100%;
        margin: 25px 0;
    }
}
}/* ===========================
   Global Styles
   =========================== */