/* ========================================
   Nabíjacie Stanice SK - Styles
   ======================================== */

:root {
    --primary: #0A6847;
    --primary-dark: #064E33;
    --primary-light: #0D8A5F;
    --secondary: #7ABA78;
    --secondary-light: #A8D5A6;
    --accent: #F59E0B;
    --bg: #FAFBFC;
    --bg-alt: #F0F4F0;
    --text: #1A1A2E;
    --text-light: #4A5568;
    --text-muted: #718096;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.5rem; }
.logo-text strong { color: var(--primary); }

.main-nav {
    display: flex;
    gap: 32px;
}
.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: var(--bg-alt);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 0.85rem;
}
.breadcrumb li::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .current { color: var(--text-muted); }

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 60px 0;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero h1 span { color: var(--secondary-light); }
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.7;
}

/* Search box */
.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    max-width: 520px;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font-main);
    border-radius: var(--radius-md);
    background: transparent;
}
.search-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-box button:hover { background: var(--primary-dark); }

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary);
}
.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-header .badge {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--primary-dark);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ========================================
   CARDS GRID
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.cards-grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Region Card */
.region-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.region-card:hover::before { transform: scaleX(1); }

.region-card .card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 16px;
}
.region-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.region-card .card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.region-card .card-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* District / City Card */
.city-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}
.city-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.city-card .card-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
}
.city-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.city-card .card-zip {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.city-card .card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: color var(--transition);
}
.city-card:hover .card-arrow { color: var(--primary); }

/* ========================================
   STATION CARD
   ======================================== */
.station-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.station-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}
.station-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.station-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.station-status.active {
    background: #ECFDF5;
    color: #065F46;
}
.station-status.inactive {
    background: #FEF3C7;
    color: #92400E;
}
.station-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.station-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.station-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
}
.station-tag strong { color: var(--text); }
.station-connections {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.station-connections h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.connector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border);
}
.connector:last-child { border-bottom: none; }
.connector-type { font-weight: 600; color: var(--text); }
.connector-power {
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 48px 0;
    color: var(--white);
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.info-grid.reverse { direction: rtl; }
.info-grid.reverse > * { direction: ltr; }
.info-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.info-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.info-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.info-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question i { transition: transform var(--transition); color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}
.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination a { color: var(--text-light); background: var(--white); }
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.empty-state p { color: var(--text-muted); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
}
.footer-links a:hover { color: var(--secondary-light); }
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--secondary-light); }

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   404
   ======================================== */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.page-404 h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.page-404 h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.page-404 p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Filter / search */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color var(--transition);
}
.filter-bar input:focus, .filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
}
.filter-bar input { flex: 1; min-width: 200px; }

/* City list compact */
.cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .info-grid { grid-template-columns: 1fr; gap: 32px; }
    .info-grid.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    .main-nav.active { display: flex; }
    .nav-toggle { display: block; }
    
    .hero { min-height: 420px; }
    .hero-content { padding: 40px 0; }
    .search-box { flex-direction: column; }
    .search-box button { justify-content: center; }
    
    .stats-bar { grid-template-columns: 1fr 1fr; margin-top: -20px; }
    .section { padding: 48px 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .cards-grid-4 { grid-template-columns: 1fr 1fr; }
    .cities-list { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; }
    .cards-grid-4 { grid-template-columns: 1fr; }
}