/*
Theme Name: Oblíkačky Theme
Theme URI: http://oblikacky.cz
Author: Ty
Description: Růžová šablona pro dívčí hry
Version: 1.4 (Compact)
*/

/* 1. NAČTENÍ FONTŮ S ČESKOU PODPOROU (Baloo 2 + Quicksand) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&display=swap&subset=latin,latin-ext');

/* =========================================
   2. PROMĚNNÉ A BARVY
   ========================================= */
:root {
    --primary: #ff69b4;   /* Hot Pink */
    --secondary: #9b59b6; /* Purple */
    --bg-color: #fce4ec;  /* Light Pink BG */
    --card-bg: #ffffff;
    --text-color: #333;
    --game-bg: #2c3e50;
}

/* =========================================
   3. NATVRDO VYNUCENÉ FONTY (!important)
   ========================================= */

/* Základní text - Quicksand */
body, p, li, a, span, div, td, th, input, button {
    font-family: 'Quicksand', sans-serif !important;
    color: var(--text-color);
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* Nadpisy - Baloo 2 */
h1, h2, h3, h4, h5, h6, .logo a, .game-header h1, .controls-box strong {
    font-family: 'Baloo 2', cursive !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* =========================================
   4. OSTATNÍ STYLY
   ========================================= */

a { text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }

/* HEADER */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.8rem 0; /* Zmenšeno z 1rem */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Menší padding po stranách */
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    font-size: 2rem; 
    font-weight: 800;
    letter-spacing: 1px;
    color: white !important;
}

/* Menu */
.main-menu ul {
    display: flex;
    gap: 15px; /* Zmenšeno z 20px */
    margin: 0;
}

.main-menu a {
    font-weight: 700;
    font-size: 1rem;
    color: white !important;
}
.main-menu a:hover { opacity: 0.8; }

/* GRID HER */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* Zmenšeno min na 230px */
    gap: 15px;       /* Zmenšeno z 25px */
    padding: 25px 0; /* Zmenšeno z 50px na polovinu */
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.game-card:hover { transform: scale(1.03); }

.game-img {
    width: 100%;
    height: 160px; /* Zmenšeno z 180px */
    object-fit: cover;
    background-color: #eee;
}

.game-info { padding: 12px; text-align: center; } /* Zmenšeno padding */

.game-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin: 0 0 8px 0; 
    color: #444 !important;
    font-family: 'Baloo 2', cursive !important;
}

.play-btn { 
    background: var(--secondary); 
    color: white !important; 
    padding: 5px 15px; /* Menší tlačítko */
    border-radius: 5px; 
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
}

/* DETAIL HRY */
.game-wrapper {
    background: white;
    margin: 15px auto; /* Zmenšeno z 30px */
    border-radius: 15px;
    padding: 20px;
    max-width: 960px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.game-header h1 {
    color: var(--secondary) !important;
    font-size: 2rem;
    margin-top: 5px;
}

.game-screen {
    background: var(--game-bg);
    width: 100%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Zmenšeno */
    border-radius: 8px;
    overflow: hidden;
}
.game-screen iframe { width: 100%; height: 600px; border: none; }

/* Text pod hrou */
.game-desc { line-height: 1.6; font-size: 1rem; }
.game-desc h2, .game-desc h3 { color: var(--secondary) !important; margin-top: 20px; }

.game-desc ul { list-style-type: disc; padding-left: 20px; margin-bottom: 1rem; }
.game-desc ol { list-style-type: decimal; padding-left: 20px; margin-bottom: 1rem; }
.game-desc li { margin-bottom: 6px; }

/* KOMPONENTY */
.breadcrumb { font-size: 0.85rem; color: #888 !important; margin-bottom: 5px; }
.breadcrumb a { color: #888 !important; }
.breadcrumb a:hover { color: var(--primary) !important; text-decoration: underline; }

.controls-box, .is-style-controls-box {
    background: #fff0f6;
    border-left: 5px solid var(--primary);
    padding: 15px;       /* Zmenšeno z 20px */
    margin: 20px 0;      /* Zmenšeno z 30px */
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    color: #555 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.controls-box strong, .is-style-controls-box strong {
    color: var(--secondary) !important;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 5px;
    font-family: 'Baloo 2', cursive !important;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag-btn {
    display: inline-block;
    background: #f0f0f0;
    color: #555 !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}
.tag-btn:hover { background: var(--secondary); color: white !important; transform: translateY(-2px); }

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--secondary);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Styl pro tlačítka kategorií na hlavní stránce */
.cat-btn {
    display: inline-block;
    background: white;        
    color: var(--secondary) !important; 
    padding: 8px 20px;      /* Zmenšeno padding */
    margin: 4px;            /* Zmenšeno margin */
    border-radius: 50px;       
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
    border: 2px solid transparent; 
    transition: all 0.3s ease;
}

.cat-btn:hover {
    background: var(--primary); 
    color: white !important;    
    transform: translateY(-2px); 
    box-shadow: 0 5px 12px rgba(255, 105, 180, 0.4); 
}

/* =========================================
   PATIČKA (Footer)
   ========================================= */
footer {
    background: #333;              
    color: white !important;       
    text-align: center;            
    padding: 25px 0;               /* Zmenšeno ze 45px na 25px */
    margin-top: 0 !important;      /* Nulový odstup od sekce nad tím */
}

footer p {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif !important; 
}

.copyright {
    font-size: 1rem;
    font-weight: 600;   
    color: white;
    margin-bottom: 5px; 
}

.slogan {
    font-size: 0.85rem;  
    font-weight: 400;
    color: white;
    opacity: 0.7;        
}

/* Štítek kategorie na kartě hry */
.game-cat-tag {
    display: block;              
    font-size: 0.7rem;          
    text-transform: uppercase;   
    color: var(--primary);       
    font-weight: 700;            
    margin-bottom: 3px;          
    letter-spacing: 0.5px;
    font-family: 'Quicksand', sans-serif !important;
}

/* =========================================
   LISTOVÁNÍ STRÁNKAMI (Pagination)
   ========================================= */
.pagination-wrapper {
    margin: 20px 0;  /* Zmenšeno */
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a, 
.nav-links span {
    display: inline-block;
    padding: 8px 15px; /* Zmenšeno */
    background: white;
    color: var(--secondary);
    border-radius: 50px;       
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Quicksand', sans-serif !important;
}

.nav-links span.current {
    background: var(--primary); 
    color: white;
    transform: scale(1.1);      
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.nav-links a:hover {
    background: var(--secondary); 
    color: white;
    transform: translateY(-2px);
}

h2.screen-reader-text { display: none; }

/* =========================================
   VYHLEDÁVÁNÍ V HLAVIČCE
   ========================================= */

.search-box {
    flex-grow: 1;           
    max-width: 400px;       
    margin: 0 20px;         /* Zmenšeno */
}

.search-box form {
    display: flex;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 50px;    
    padding: 4px 12px;      /* Zmenšeno */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-box form:focus-within {
    background: white;      
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    color: white;           
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600;
    outline: none;          
    padding: 4px;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.8); }

.search-box form:focus-within input { color: var(--secondary); }
.search-box form:focus-within input::placeholder { color: #bbb; }

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    transition: transform 0.2s;
}
.search-box button:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column; 
        gap: 10px;
    }
    .search-box {
        width: 100%;       
        max-width: 100%;
        margin: 5px 0;
    }
    .main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   MRAK ŠTÍTKŮ (Pre-footer)
   ========================================= */

.tag-cloud-section {
    background: #fff0f5;
    padding: 10px 0;            
    text-align: center;
    border-top: 1px solid #ffe6f2;
    margin-top: 15px;          /* ZMENŠENO z 30px na 15px */
    margin-bottom: 0;          /* Jistota žádné mezery dole */
}

.cloud-title {
    color: var(--secondary);
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;          /* Menší písmo */
    margin-bottom: 10px;        
    margin-top: 0;
}

.cloud-tags {
    display: flex;
    flex-wrap: wrap;           
    justify-content: center;   
    gap: 8px;                  /* Menší mezery */
    max-width: 900px;          
    margin: 0 auto;            
}

.cloud-tags a {
    display: inline-block;
    background: white;         
    color: var(--secondary);   
    padding: 6px 14px;         /* Zmenšeno padding */
    border-radius: 50px;       
    text-decoration: none;
    font-size: 0.9rem !important; 
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif !important;
}

.cloud-tags a:hover {
    background: var(--primary); 
    color: white;               
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* =========================================
   VÝBĚR REDAKCE (Featured)
   ========================================= */

/* Tady vynucujeme menší padding i přes inline styl v PHP */
.editors-choice-section {
    padding: 20px 0 !important;   /* Zmenšeno ze 40px */
    margin-bottom: 20px !important; /* Zmenšeno margin */
}

.featured-card {
    border: 2px solid #fbcfe8; 
    position: relative;        
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px); /* Jemnější pohyb */
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.25);
    border-color: #db2777;
}

.top-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd700;       
    color: #b45309;            
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    font-family: 'Quicksand', sans-serif !important;
}

/* Odznáček Výběr redakce na stránce hry */
.single-top-badge {
    display: inline-block;
    background: #ffd700;       /* Zlatá barva */
    color: #b45309;            /* Tmavě zlatý/hnědý text pro kontrast */
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 5px;           /* Odstup od drobečkové navigace */
    margin-bottom: 2px;        /* Odstup od nadpisu */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Quicksand', sans-serif !important;
    letter-spacing: 0.5px;
}