:root {
    --primary-bg: #f0f0f5;
    /* Light grey-ish background */
    --card-bg: #ffffff;
    --text-color: #333333;
    --accent-red: #e60023;
    /* Vibrant red for CTA */
    --accent-green: #2ecc71;
    /* Success green */
    --accent-yellow: #f1c40f;
    /* Star yellow */
    --header-gradient-start: #e0eafc;
    --header-gradient-end: #cfdef3;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 480px;
    /* Mobile focused max-width */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background: transparent;
    padding: 20px 0;
    text-align: center;
}

.logo-container {
    padding: 10px;
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.site-logo {
    height: 40px;
    width: auto;
}

.header-content {
    max-width: 450px;
    margin: 0 auto;
    padding: 0;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.last-updated {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main Content */
main {
    padding-bottom: 40px;
}

.dating-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.site-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--accent-yellow);
    color: #fff;
    font-weight: 800;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Special styling for top 3 ranks if needed, but generic works */
.site-card:nth-child(1) .rank-badge {
    background: #ffd700;
    color: #333;
}

.site-card:nth-child(2) .rank-badge {
    background: #c0c0c0;
    color: #333;
}

.site-card:nth-child(3) .rank-badge {
    background: #cd7f32;
    color: #fff;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.site-logo-img {
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rating-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
}

.stars {
    color: var(--accent-yellow);
    font-size: 14px;
}

.features-list {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 5px;
}

.features-list li {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: #444;
}

.check-icon {
    color: var(--accent-green);
    margin-right: 10px;
    font-weight: bold;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-red);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(230, 0, 35, 0.2);
}

.cta-button:hover {
    background-color: #c4001f;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(1px);
}

.arrow {
    margin-left: 10px;
    font-size: 14px;
}

/* Trust Section */
.trust-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.trust-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.trust-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Jak hodnotíme — 3 bubliny pod h1 */
.how-we-rate {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 22px;
}

.how-we-rate-item {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: left;
}

.how-we-rate-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.how-we-rate-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

@media (min-width: 768px) {
    .how-we-rate {
        flex-direction: row;
        gap: 16px;
    }
    .how-we-rate-item {
        flex: 1;
    }
}

/* Rating count */
.rating-count {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 1px;
}

/* Perex (Intro Text) */
.perex {
    max-width: 600px;
    margin: 10px auto 20px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* Updated Hero Image Styling */
.hero-image {
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}

.hero-image img {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.content-section {
    display: flex;
    flex-direction: column;
    /* Mobile first: stacked */
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.content-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.content-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 1:1 Format */
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.content-text {
    width: 100%;
}

.content-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.content-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: #222;
}

.content-text ul,
.content-text ol {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 15px;
    padding-left: 22px;
}

.content-text ul li,
.content-text ol li {
    margin-bottom: 6px;
}

.content-text ul:last-child,
.content-text ol:last-child {
    margin-bottom: 0;
}

/* Methodology links block (recenze/kategorie interlinking lists) */
.methodology-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.methodology-links li a {
    display: inline-block;
    background: #f5f5fa;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s, color 0.15s;
}

.methodology-links li a:hover {
    background: var(--accent-red);
    color: #fff;
}

/* Link from homepage "how we rate" bubbles to full methodology page */
.how-we-rate-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
    text-decoration: none;
}

.how-we-rate-link:hover {
    text-decoration: underline;
}


.section-image {
  width: 100%;
  margin-top: 16px;
}

.section-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}


/* Footer */
footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}

.footer-summary {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-summary h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #888;
}


/* Responsive adjustments for larger screens (Tablet/Desktop) */
@media (min-width: 768px) {

    .container,
    .logo-container {
        max-width: 800px;
    }

    .header-content {
        max-width: 770px;
    }

    .dating-list {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Content Section Desktop Layout */
    .content-section {
        flex-direction: row;
        text-align: left;
    }

    .content-section.reverse {
        flex-direction: row-reverse;
    }

    .content-image,
    .content-text {
        width: 50%;
    }

    .content-image {
        margin-bottom: 0;
    }

    .content-section .content-text {
        padding-left: 40px;
    }

    .content-section.reverse .content-text {
        padding-left: 0;
        padding-right: 40px;
    }
}

/* =====================
   HAMBURGER BUTTON
   ===================== */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 2100;
    position: relative;
    margin-right: 5px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-open .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
}
.menu-open .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2100;
}

/* =====================
   NAV OVERLAY (tmavé pozadí)
   ===================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.active {
    display: block;
}

/* =====================
   NAV PANEL (drawer zprava)
   ===================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

/* Hlavička panelu (logo + zavřít) */
.nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.nav-panel-logo {
    height: 30px;
    width: auto;
}

.nav-close {
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 2px 4px;
    transition: color 0.2s;
}
.nav-close:hover {
    color: #333;
}

/* Seznam položek */
.nav-list {
    list-style: none;
    padding: 6px 0 20px;
    margin: 0;
    flex: 1;
}

.nav-list > li {
    border-bottom: 1px solid #f5f5f5;
}

/* Přímé odkazy (Domů, kategorie) */
.nav-list > li > a {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-list > li > a:hover {
    background: #fff5f5;
    color: var(--accent-red);
}

/* Accordion tlačítko (Recenze) */
.nav-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.nav-accordion-btn:hover {
    background: #fff5f5;
    color: var(--accent-red);
}

.nav-accordion-icon {
    font-size: 11px;
    opacity: 0.45;
    transition: transform 0.25s;
}
.nav-accordion-btn.open .nav-accordion-icon {
    transform: rotate(180deg);
}

/* Accordion podmenu */
.nav-accordion-sub {
    display: none;
    list-style: none;
    padding: 4px 0 6px;
    margin: 0;
    background: #fafafa;
}
.nav-accordion-sub.open {
    display: block;
}
.nav-accordion-sub li a {
    display: block;
    padding: 9px 20px 9px 32px;
    font-size: 13.5px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.15s, background 0.15s;
}
.nav-accordion-sub li:last-child a {
    border-bottom: none;
}
.nav-accordion-sub li a:hover {
    color: var(--accent-red);
    background: #fff5f5;
}

/* Vizuální oddělovač a label Kategorie */
.nav-separator {
    height: 6px;
    background: #f5f5f5;
    border: none;
}

.nav-cat-label {
    display: block;
    padding: 10px 20px 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #bbb;
    pointer-events: none;
    border-bottom: none !important;
}

/* Review Link Styles */
.review-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.review-link:hover {
    color: #333;
}

/* (nav styles přesunuty výše) */

/* =====================
   TEAM / PROFILE CARDS (o nas)
   ===================== */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.team-role {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    text-align: left;
}

@media (min-width: 768px) {
    .team-grid {
        flex-direction: row;
        align-items: stretch;
    }

    .team-card {
        flex: 1;
    }
}

/* Added for beste-datingportale-2026.php */
.text-logo {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
}

.card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Card action buttons (primary + secondary, side by side) */
.cta-button {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions .cta-button {
    flex: 1 1 auto;
}

.cta-button-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    background-color: #fff;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cta-button-secondary:hover {
    background-color: #f5f5fa;
    border-color: #ccc;
}
