/**
 * eLfilms.cz - Herečky (přehledová stránka) – styly
 *
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/herecky.css
 * @version    1.4 - foto 115px, karta kratší, grid padding-top, vlajka nad profesí
 * @datum      Duben 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 *
 * STYLUJE:
 * - Reset + body
 * - Layout (sidebar + main)
 * - Sidebar filtry (toggle typ, stav, select, checkboxy, reset)
 * - Burger menu (mobilní filtry)
 * - Grid hereček – 4 sloupce, karty totožné se slavne-zeny.css
 * - Karta: foto přesahující nahoru, rámeček, hover efekty, fade-in animace
 * - 🏳️‍🌈 badge přesahující pravý horní roh karty
 * - ✦ badge pro zemřelé
 * - List view karta
 * - Stránkování
 *
 * POUŽÍVÁ:
 * - herecky.php
 *
 * DESIGN:
 * - Barvy: tmavě modrá (#0d1b2a, #0b334f–#1a4f72), zlatá (#EEB500)
 * - Max šířka obsahu: 1200px
 *
 * NOTE:
 * - Responsive styly jsou v herecky-responsive.css
 * - Karty (.woman-card) jsou záměrně identické se slavne-zeny.css
 */

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

/* ============================================
   BODY
   ============================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b334f;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* ============================================
   LINKS
   ============================================ */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   ACCESSIBILITY - SKIP TO CONTENT
   ============================================ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #EEB500;
    color: #0b334f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* ============================================
   HLAVNÍ LAYOUT (sidebar + main)
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: calc(100vh - 60px);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    padding-right: 20px;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    font-weight: 600;
}

/* ============================================
   TOGGLE HEREČKY / 🏳️‍🌈
   ============================================ */
.type-toggle {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.type-toggle button {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.type-toggle button:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.type-toggle button:last-child {
    border-radius: 0 8px 8px 0;
}

.type-toggle button:hover {
    background: rgba(255,255,255,0.15);
}

.type-toggle button.active {
    background: #EEB500;
    color: #0b334f;
    font-weight: 600;
    border-color: #EEB500;
}

.rainbow-btn {
    font-size: 18px;
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
}

/* ============================================
   STAV TOGGLE
   ============================================ */
.stav-toggle {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.stav-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
}

.stav-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.stav-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.stav-btn:hover {
    background: rgba(255,255,255,0.15);
}

.stav-btn.active {
    background: #EEB500;
    color: #0b334f;
    font-weight: 600;
    border-color: #EEB500;
}

/* ============================================
   SELECT FILTRY
   ============================================ */
.filter-select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #EEB500;
    background: rgba(255,255,255,0.12);
}

.filter-select option {
    background: #0b334f;
    color: white;
    padding: 10px;
}

.filter-select option:disabled {
    color: rgba(255,255,255,0.3);
}

/* ============================================
   CHECKBOXY
   ============================================ */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    width: 100%;
}

.checkbox-item:hover {
    color: #EEB500;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #EEB500;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================
   RESET FILTRŮ
   ============================================ */
.reset-filters-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-filters-btn:hover {
    border-color: #EEB500;
    color: #EEB500;
}

/* ============================================
   BURGER MENU (mobilní filtry)
   ============================================ */
.filters-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s;
}

.filters-burger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.filters-burger:hover {
    background: rgba(255,255,255,0.15);
    border-color: #EEB500;
}

/* ============================================
   HLAVNÍ OBSAH
   ============================================ */
.main-content {
    min-width: 0;
}

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

.content-header h1 {
    font-size: 25px;
    font-weight: 600;
    color: white;
}

.content-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.sort-select {
    background: transparent;
    border: none;
    color: #EEB500;
    padding: 8px 5px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.sort-select option {
    background: #0b334f;
    color: white;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.view-btn.active {
    background: #EEB500;
    color: #0b334f;
}

/* ============================================
   POČET VÝSLEDKŮ
   ============================================ */
.results-count {
    margin-bottom: 20px;
    font-size: 20px;
    color: rgba(255,255,255,0.6);
}

.results-count span {
    color: #EEB500;
    font-weight: 600;
}

/* ============================================
   GRID HEREČEK – 4 sloupce
   ============================================ */
.herecky-grid {
    display: grid;
    gap: 20px;
}

.herecky-grid.view-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;
    row-gap: 140px;
    padding-top: 70px;
}

.herecky-grid.view-list {
    grid-template-columns: 1fr;
    gap: 0;
}

/* ============================================
   GRID KARTA – totožná se slavne-zeny.css
   ============================================ */

/* Základní stav: neviditelná, posunutá dolů (JS přidá .fade-in) */
.woman-card {
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    padding: 80px 20px 10px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    opacity: 0;
    transform: translateY(150px);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* Viditelný stav po přidání .fade-in */
.woman-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover efekt */
.woman-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Hover pohyb karty (jen po dokončení fade-in) */
.woman-card.fade-in:hover {
    transform: translateY(-5px) scale(1.03) !important;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    transition-delay: 0s !important;
}

/* Link uvnitř karty přes celou plochu */
.woman-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FOTO – přesahuje přes horní okraj karty
   ============================================ */
.woman-photo {
    position: absolute;
    top: -57px;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: 5px solid #0b334f;
    background: #1a5276;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.woman-photo:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.woman-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.3s ease;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    font-size: 50px;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   JMÉNO, PROFESE, META
   ============================================ */
.woman-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    transition: color 0.3s;
}

.woman-card:hover .woman-name {
    color: #EEB500;
}

.woman-role {
    color: #EEB500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500;
}

.woman-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.woman-meta .flag {
    font-size: 20px;
}

/* ============================================
   BADGE: 🏳️‍🌈 přesahuje pravý horní roh karty
   ============================================ */
.lesba-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    z-index: 2;
}

/* ============================================
   BADGE: ✦ zemřelá
   ============================================ */
.zemrela-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.4;
    z-index: 2;
}

/* ============================================
   FADE-IN ANIMACE – zpoždění po 4 sloupcích
   ============================================ */
.woman-card:nth-child(1).fade-in  { transition-delay: 0.2s; }
.woman-card:nth-child(2).fade-in  { transition-delay: 0.3s; }
.woman-card:nth-child(3).fade-in  { transition-delay: 0.4s; }
.woman-card:nth-child(4).fade-in  { transition-delay: 0.5s; }
.woman-card:nth-child(5).fade-in  { transition-delay: 0.8s; }
.woman-card:nth-child(6).fade-in  { transition-delay: 0.9s; }
.woman-card:nth-child(7).fade-in  { transition-delay: 1.0s; }
.woman-card:nth-child(8).fade-in  { transition-delay: 1.1s; }
.woman-card:nth-child(9).fade-in  { transition-delay: 1.4s; }
.woman-card:nth-child(10).fade-in { transition-delay: 1.5s; }
.woman-card:nth-child(11).fade-in { transition-delay: 1.6s; }
.woman-card:nth-child(12).fade-in { transition-delay: 1.7s; }
.woman-card:nth-child(13).fade-in { transition-delay: 2.0s; }
.woman-card:nth-child(14).fade-in { transition-delay: 2.1s; }
.woman-card:nth-child(15).fade-in { transition-delay: 2.2s; }
.woman-card:nth-child(16).fade-in { transition-delay: 2.3s; }
.woman-card:nth-child(n+17).fade-in { transition-delay: 0s; }

/* ============================================
   LIST VIEW – karta
   ============================================ */
.list-card {
    flex-direction: row;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
    padding-top: 20px;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.list-card:first-child {
    padding-top: 0;
}

.list-card:last-child {
    border-bottom: none;
}

.list-card a {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Foto v list view */
.herecka-foto.list-foto {
    width: 80px;
    min-width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    margin-bottom: 0;
}

.list-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    display: block;
}

/* Info sekce v list view */
.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

/* Řádek jméno + badge */
.list-jmeno-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-info .herecka-jmeno {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: left;
    transition: color 0.3s;
    margin: 0;
}

.list-card:hover .list-info .herecka-jmeno {
    color: #EEB500;
}

/* Duhová vlajka inline v list view */
.lesba-badge-list {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Meta řádek v list view */
.herecka-meta-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.herecka-profese {
    font-size: 13px;
    color: #EEB500;
    font-weight: 500;
}

.herecka-vek {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.herecka-flag {
    font-size: 18px;
    line-height: 1;
}

/* ============================================
   PRÁZDNÉ VÝSLEDKY
   ============================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
    display: block;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.no-results p {
    font-size: 16px;
}

/* ============================================
   STRÁNKOVÁNÍ
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.pagination a.active {
    background: #EEB500;
    color: #0b334f;
    font-weight: 600;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
    font-size: 18px;
}

.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .dots {
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: default;
}

/* ============================================
   FOCUS (accessibility)
   ============================================ */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid #EEB500;
    outline-offset: 2px;
}