/* --- ČÁST 1: TVŮJ PŮVODNÍ GLOBÁLNÍ STYL (style.css) --- */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}
.container {
    width: 100%;
    box-sizing: border-box; 
    padding-left: 2rem; 
    padding-right: 2rem;
}
h1, h2, h3 {
    color: #333;
}
hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 2rem 0;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}
input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}
button, input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
li strong {
    font-size: 1.2em;
    color: #333;
}
.message {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent;
    border-radius: 8px !important;
    font-size: 1rem;
    text-align: center;
}
.message.success {
    color: #155724;
    background-color: #d4edda !important;
    border-color: #c3e6cb;
}
.message.warning,
.message.error {
    color: #721c24;
    background-color: #f8d7da !important;
    border-color: #f5c6cb;
}
.tier-info-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 80px; 
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    width: 280px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}
.tier-info-dropdown.visible { display: block; }
.tier-info-dropdown h4 { margin-top: 0; color: #333; }
.tier-info-dropdown p { font-size: 0.9rem; margin-bottom: 1rem; }
.tier-info-dropdown ul { list-style: none; padding: 0; margin: 0; }
.tier-info-dropdown li {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: none;
    font-size: 0.95rem;
    color: white; 
}
.tier-item-diamond, .tier-item-gold, .tier-item-silver, .tier-item-bronze, 
.creator-badge-tier-diamond, .creator-badge-tier-gold, .creator-badge-tier-silver, .creator-badge-tier-bronze {
    /* Stín pro 3D efekt */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Jemný světlý okraj pro lesk */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Textový stín pro čitelnost */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* 1. DIAMOND - Neonově modrá záře */
.tier-item-diamond, .creator-badge-tier-diamond {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white !important; /* Bílý text na tmavě modré */
    border-color: #a6efff;
}

/* 2. GOLD - Zlatý kov */
.tier-item-gold, .creator-badge-tier-gold {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #fff !important; /* Změna na bílou pro lepší kontrast se stínem */
    border-color: #ffeebb;
}

/* 3. SILVER - Stříbrný kov */
.tier-item-silver, .creator-badge-tier-silver {
    background: linear-gradient(135deg, #bdc3c7 0%, #7f8c8d 100%);
    color: #fff !important;
    border-color: #eeeeee;
}

/* 4. BRONZE - Měděný kov */
.tier-item-bronze, .creator-badge-tier-bronze {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white !important;
    border-color: #ffb07c;
}
.transaction-positive {
    border-left: 5px solid #28a745 !important;
}
.transaction-negative {
    border-left: 5px solid #dc3545 !important;
}
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}
.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal .close:hover {
    color: black;
}
.home-channel-card {
    position: relative;
    border: 2px solid #ddd;
    transition: all 0.2s ease-in-out;
}
.home-channel-card.youtube:hover { border-color: #FF0000; }
.home-channel-card.twitch:hover { border-color: #9146FF; }
.home-channel-card.tiktok:hover { border-color: #000000; }
.home-platform-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.site-logo {
    height: 50px; 
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}
.nav-button {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    color: #495057 !important;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}
.nav-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529 !important;
}
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .header-main {
        flex-direction: column;
        gap: 1rem;
    }
    #creator-nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }
    .profile-header-container {
        flex-direction: column;
        gap: 15px;
    }
    .profile-channels {
        min-width: 0;
    }
    .nav-tabs {
        flex-wrap: wrap;
    }
    .idea-grid {
        grid-template-columns: 1fr;
    }
    .idea-detail-container {
        flex-direction: column;
    }
    .idea-main-content { order: 1; }
    .idea-sidebar { order: 2; }
    .channel-gallery {
        grid-template-columns: 1fr;
    }
    .carousel-wrapper { padding: 0; }
    .carousel-arrow { display: none; }
    .trending-gallery {
        padding: 0 1rem;
        gap: 1rem;
    }
    .trending-gallery .gallery-card {
        flex: 0 0 250px;
        max-width: 250px;
    }
}

/* --- ČÁST 2: TVOJE SPECIFICKÉ STYLY (z base.html) --- */
.site-footer { background-color: #f8f9fa; color: #6c757d; padding: 2rem 0; margin-top: 4rem; border-top: 1px solid #e9ecef; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; }
.footer-nav a { color: #6c757d; text-decoration: none; margin-left: 1.5rem; transition: color 0.2s ease-in-out; }
.footer-nav a:hover { color: #007bff; text-decoration: underline; }
header.header-main .user-dropdown { position: relative; }
header.header-main .dropdown-divider { border-top: 1px solid #f0f0f0; margin: 5px 0; }
#user-menu-dropdown { right: 0; left: auto; }
header.header-main .nav-action { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 6px; text-decoration: none !important; font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease-in-out; border: 1px solid transparent; white-space: nowrap; }
header.header-main .nav-action-primary { background-color: #007bff; color: white !important; border-color: #007bff; }
header.header-main .nav-action-primary:hover { background-color: #0056b3; border-color: #0056b3; color: white !important; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
header.header-main .nav-action-secondary { background-color: #f8f9fa !important; color: #343a40 !important; border-color: #dee2e6 !important; }
header.header-main .nav-action-secondary:hover { background-color: #e9ecef !important; border-color: #ced4da !important; }
.notification-wrapper { position: relative; }
.notification-badge { position: absolute; top: -1px; right: 2px; background-color: #dc3545; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7em; font-weight: bold; display: flex; justify-content: center; align-items: center; }
.notifications-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #eee; }
.notifications-header span { font-weight: bold; }
.notifications-header a { font-size: 0.8em; text-decoration: none; }
.notifications-list { max-height: 400px; overflow-y: auto; }
.notification-item { display: block; padding: 12px 15px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background-color: #f8f9fa; }
.notification-item.is-read { color: #6c757d; background-color: #fdfdfd; }
.notification-item small { font-size: 0.8em; color: #6c757d; margin-top: 4px; display: block; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
.confirm-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s; }
.confirm-modal-content { background-color: #fff; margin: 15% auto; padding: 25px; border: 1px solid #888; width: 90%; max-width: 450px; border-radius: 12px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.3); }
.modal-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.modal-buttons .btn { padding: 10px 25px; border-radius: 5px; font-weight: bold; cursor: pointer; border: 1px solid; }
.modal-buttons .btn-confirm { background-color: #28a745; color: white; border-color: #28a745; }
.modal-buttons .btn-cancel { background-color: #6c757d; color: white; border-color: #6c757d; }
.header-main { position: relative; }
.header-main.header-tier-bronze::after, .header-main.header-tier-silver::after, .header-main.header-tier-gold::after, .header-main.header-tier-diamond::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; }
.header-main.header-tier-bronze::after { background-color: #cd7f32; }
.header-main.header-tier-silver::after { background-color: #aaa9ad; }
.header-main.header-tier-gold::after { background-color: #ffb60a; }
.header-main.header-tier-diamond::after { background-color: #00bfff; }
.creator-badge { font-size: 0.75em; padding: 3px 8px; border-radius: 15px; color: white; background-color: #6c757d; border: 1px solid rgba(0,0,0,0.1); vertical-align: middle; }
.creator-badge-tier-bronze { background-color: #cd7f32; }
.creator-badge-tier-silver { background-color: #aaa9ad; }
.creator-badge-tier-gold { background-color: #ffb60a; }
.creator-badge-tier-diamond { background-color: #00bfff; }
.tier-info-dropdown, .notifications-dropdown, .user-dropdown-menu { display: none; position: absolute; top: calc(100% + 5px); right: 0; background-color: white; min-width: 220px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; border: 1px solid #eee; border-radius: 8px; padding: 5px 0; overflow: hidden; }
.notifications-dropdown { width: 380px; padding: 0; }
.tier-info-dropdown { min-width: 280px; padding: 1rem; }
.tier-info-dropdown.visible, .notifications-dropdown.visible, .user-dropdown-menu.visible { display: block !important; }
header.header-main .user-dropdown-menu a, 
header.header-main .user-dropdown-menu .dropdown-item-logout {
    color: #333 !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    display: block !important;
    background: none !important;
    border: none !important;
    width: 100%;
    text-align: left !important;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
header.header-main .user-dropdown-menu a:hover, 
header.header-main .user-dropdown-menu .dropdown-item-logout:hover {
    background-color: #007bff !important;
    color: white !important;
    cursor: pointer;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .footer-nav a {
        margin-left: 0;
    }

    .notifications-dropdown,
    .user-dropdown-menu,
    .tier-info-dropdown {
        /*
         * position: fixed; přilepí menu k oknu prohlížeče, ne k tlačítku.
         * To je klíč k tomu, abychom ho mohli roztáhnout na celou šířku.
        */
        position: fixed;
        
        /* * Nastavíme pevnou pozici od horního okraje.
         * 70px je odhad, můžeš změnit na 65px, pokud je to moc.
        */
        top: 70px;
        
        /* * TOTO JE TEN TRIK:
         * Řekneme mu "začni 10px od levého kraje" a "skonči 10px od pravého kraje".
         * Tím se automaticky roztáhne na plnou šířku s malým okrajem.
        */
        left: 10px;
        right: 10px;
        
        /* * Zrušíme pevnou šířku (hlavně pro notifikace) a původní zarovnání.
        */
        width: auto;
        min-width: 0; /* <-- DŮLEŽITÉ: Přebije 'min-width: 280px' */
    }

    /* Speciální úprava pro padding, aby byl uvnitř stejný */
    .tier-info-dropdown {
        padding: 1rem; /* Zachováme jeho původní vnitřní padding */
    }

    /* Zajistíme, aby se seznam notifikací roztáhl na 100% výšky */
    .notifications-list {
        max-height: 70vh; /* Omezíme výšku na 70% obrazovky */
    }
}

.modal-form-note {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}
.modal-form-note a {
    font-size: 0.9em;
    color: #007bff;
}
.modal-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

/* --- GLOBÁLNÍ STYL PRO "CREATOR PICK" ODZNAK --- */

/* 1. Úprava karty, aby odznak mohl "trčet" ven */
.idea-card.has-creator-badge, 
.gallery-card.has-creator-badge { /* Přidali jsme i gallery-card pro jistotu */
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

/* 2. Samotný vzhled odznaku */
.creator-pick-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background-color: #FFD700;  /* Zlatá */
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}