/* 
   EnergyDataDesk - CSS Design System
   Modern Light Portal Design, Premium Emerald Accents, Clean Shadows
*/

:root {
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --primary: #059669;
    --primary-glow: rgba(5, 150, 105, 0.12);
    --primary-hover: #10B981;
    --accent: #06B6D4;
    --accent-glow: rgba(6, 182, 212, 0.2);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset a základní styly */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.02) 0%, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hlavička (Header) */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.logo-accent {
    color: var(--primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Tlačítka (Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

/* Glassmorphismus (zjemněný pro světlý vzhled) */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Hero sekce */
.hero {
    padding: 0.5rem 0 3.5rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1280px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(5, 150, 105, 0.08);
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.text-primary-accent {
    color: var(--primary);
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Checkmark list v hero */
.hero-list {
    list-style: none;
    margin: 1.5rem 0 2.25rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Obal screenshotu aplikace */
.app-mockup-wrapper {
    position: relative;
    border-radius: 12px;
    padding: 6px;
    background: #E2E8F0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transition: var(--transition-smooth);
    overflow: hidden;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.app-mockup-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.app-mockup-header {
    height: 28px;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-dot.red { background-color: #EF4444; }
.mockup-dot.yellow { background-color: #F59E0B; }
.mockup-dot.green { background-color: #10B981; }

.app-mockup-content {
    border-radius: 6px;
    overflow: hidden;
    background: #0D0F14;
    display: flex;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Sekce Highlights (5 sloupců) */
.highlights-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    transition: var(--transition-smooth);
}

.highlight-card:hover {
    transform: translateY(-2px);
}

.highlight-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: rgba(5, 150, 105, 0.08);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.05);
}

.highlight-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Split layout pro články a panel autorů */
.split-content-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    position: relative;
    color: var(--text-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.article-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .article-image {
    transform: scale(1.04);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
}

.article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.article-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.article-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-card-title a:hover {
    color: var(--primary-hover);
}

.article-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: var(--transition-smooth);
}

.article-link:hover {
    color: var(--primary-hover);
    padding-left: 4px;
}

/* Panel autorů (Share knowledge) */
.author-cta-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.author-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.author-cta-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.author-benefits {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.author-benefit-icon {
    color: var(--primary);
    font-weight: bold;
}

/* Detail Článku */
.article-detail-container {
    max-width: 800px;
    padding-top: 3rem;
    padding-bottom: 6rem;
}

.back-link {
    display: inline-flex;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

.article-full-header {
    margin-bottom: 2.5rem;
}

.article-full-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.article-full h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.article-full-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.article-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
    margin: 2.5rem 0 1rem 0;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dynamic Charts inside articles */
.market-chart-container {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.market-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-chart-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.cta-box {
    margin-top: 4rem;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(5, 150, 105, 0.03) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 1rem;
}

/* Live Spot Price Widget */
.live-widget {
    margin-bottom: 2rem;
    padding: 2rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.widget-header h3 {
    margin: 0;
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    animation: ripple 1.8s infinite ease-in-out;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.widget-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.widget-value .unit {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.widget-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.widget-action .widget-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.widget-action .widget-link:hover {
    color: var(--primary-hover);
    padding-left: 4px;
}

/* Patička (Footer) */
.footer {
    background-color: #FFFFFF;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 700px;
}

.footer-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsivita */
@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .split-content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .author-cta-card {
        position: static;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 640px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.15rem;
    }
    
    .article-full h1 {
        font-size: 2.15rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
