@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --secondary: #00b4d8;
    --accent: #caf0f8;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8fbff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force uniform fonts and typography on legacy content from database */
.page-content *:not([class^="ph-"]):not([class*=" ph-"]) {
    font-family: 'Outfit', sans-serif !important;
}
.page-content {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}
.page-content p, .page-content div {
    line-height: 1.8 !important;
}

/* Odkazy (Linky) v texte podstránok */
.page-content a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.page-content a:hover {
    color: var(--secondary) !important;
    opacity: 0.9 !important;
}

/* Zrušenie podčiarknutia, ak bolo v CMS vložené natvrdo cez značku <u> */
.page-content a u {
    text-decoration: none !important;
}

/* Automatické upratovanie tabuliek z WYSIWYG editora (bez zásahu do DB) */
.page-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #e2e8f0 !important;
    margin: 25px 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
}

.page-content th, 
.page-content td {
    border: 1px solid #e2e8f0 !important;
    padding: 12px 15px !important;
    vertical-align: middle !important;
    font-size: 0.95rem !important;
    color: #334155 !important;
}

.page-content th {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Ak je v TH tučné písmo, nech zostane biele */
.page-content th strong, .page-content th b {
    color: white !important;
}

/* Zebra pásikovanie pre čitateľnosť */
.page-content tr:nth-child(even) {
    background-color: #f8fafc !important;
}

/* Hover efekt */
.page-content tr:hover {
    background-color: #f1f5f9 !important;
}

/* Odstránenie starých inline obrázkových pozadí z tabuliek ak nejaké boli */
.page-content td[background], .page-content table[background] {
    background-image: none !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff; /* Solid white to blend with logo */
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
    z-index: 1000;
    transition: 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    background: #ffffff;
}

.logo-img {
    height: 48px;
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    display: block;
}

.logo-img:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

.mobile-only {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.announcement-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e63946;
    color: white !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #e63946;
    cursor: pointer;
    transition: 0.3s;
}

.announcement-badge:hover {
    background: #d62828;
    transform: translateY(-2px);
}

.pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-portal {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: 0.3s;
}

.btn-portal:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: 0.3s;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Quick Info Cards */
.quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -80px;
    padding: 0 10%;
    z-index: 10;
    position: relative;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-top: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card.important {
    border-top-color: #ff4757;
}

.info-card.important h3::after {
    content: 'LIVE';
    font-size: 10px;
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.info-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.info-card p {
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.news-card:hover {
    transform: scale(1.02);
}

.news-img {
    height: 200px;
    background: #eef4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 50px;
}

.news-body {
    padding: 30px;
}

.news-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-body h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-body p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .quick-info, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 12px 20px !important;
        height: 70px;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        order: 2;
        background: #f0f7ff;
        border-radius: 8px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 40px 0 !important;
        gap: 20px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px !important;
        padding: 15px !important;
        display: block;
        color: var(--primary) !important;
    }

    .mobile-only {
        display: block !important;
        padding: 20px 40px !important;
    }

    .nav-actions {
        display: none !important;
    }

    .hero h1 {
        font-size: 32px !important;
        margin-top: 20px;
    }

    .hero p {
        font-size: 16px !important;
    }
    
    .quick-info {
        margin-top: -30px !important;
        gap: 15px !important;
        grid-template-columns: 1fr !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}
