/* Styly z původního profile_detail.html */
.profile-header h1 { display: flex; align-items: center; flex-wrap: nowrap; }
.pitch-video-badge { position: absolute; top: 10px; left: 10px; background-color: rgba(0, 123, 255, 0.9); color: white; border-radius: 5px; padding: 4px 8px; font-size: 0.8em; font-weight: bold; border: 1px solid rgba(255,255,255,0.5); }
.video-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.finished-video-card { text-decoration: none; color: inherit; background-color: #fff; border-radius: 8px; border: 1px solid #e0e0e0; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.finished-video-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.video-thumbnail-container { position: relative; padding-top: 56.25%; background-color: #f0f2f5; }
.video-thumbnail-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.fallback-thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-image: url("../images/fallback_thumbnail_bg.7b805546f007.png"); background-size: cover; }
.fallback-thumbnail img { width: 50%; height: auto; position: static; opacity: 0.8; }
.completed-badge { position: absolute; top: 10px; right: 10px; background-color: rgba(40, 167, 69, 0.9); color: white; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.2em; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.video-card-content { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.video-card-title { font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.video-card-stats { font-size: 0.9em; color: #6c757d; margin-top: auto; }
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; /* <-- PŘIDEJ TENTO ŘÁDEK */
}
.profile-header h1 { margin: 0; flex-wrap: wrap; }
.share-button-main { font-size: 1em; padding: 10px 20px; border: none; border-radius: 5px; font-weight: bold; color: white; cursor: pointer; background-image: linear-gradient(45deg, #ff9800 0%, #ff5722 100%); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; animation: pulse-animation 2s infinite; }
.share-button-main:hover { transform: translateY(-2px); }
@keyframes pulse-animation { 0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); } }
.share-modal { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); animation: fadeIn 0.3s; }
.share-modal-content { background-color: #fff; margin: 10% auto; padding: 25px; border: 1px solid #888; width: 90%; max-width: 450px; border-radius: 12px; position: relative; box-shadow: 0 5px 25px rgba(0,0,0,0.3); text-align: center; }
.share-modal-close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.share-modal-close:hover { color: #333; }
.share-modal-content h2 { margin-top: 0; }
.social-icons { display: flex; justify-content: center; gap: 15px; margin: 1.5rem 0; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; text-decoration: none; color: white; font-weight: bold; font-size: 1.5em; transition: transform 0.2s; }
.social-icons a:hover { transform: scale(1.1); }
#shareTwitter { background-color: #000000; } #shareFacebook { background-color: #1877F2; } #shareReddit { background-color: #FF4500; } #shareWhatsApp { background-color: #25D366; } #shareTelegram { background-color: #26A5E4; } #shareEmail { background-color: #7f8c8d; }
.social-icons i { font-size: 1.2em; }
.copy-link-container { display: flex; align-items: center; }
.copy-link-container input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-right: none; border-radius: 5px 0 0 5px; background-color: #f4f4f4; height: 40px; box-sizing: border-box; margin: 0; }
.copy-link-container button { padding: 10px 15px; border: 1px solid #6f42c1; background-color: #6f42c1; color: white; border-radius: 0 5px 5px 0; cursor: pointer; height: 40px; box-sizing: border-box; margin: 0; }
.qr-code-container { margin-top: 1.5rem; }
#qrcode { width: 150px; height: 150px; margin: 0 auto; border: 5px solid white; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
#qrcode img { width: 100% !important; height: 100% !important; }
.video-card { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.video-card-status { width: 100%; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.status-icon { font-size: 3em; }
.status-text { font-weight: bold; margin-top: 0.5rem; }
.video-card-info { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.video-card-info strong { font-size: 1.2em; }
.video-card-info p { margin: 5px 0 0 0; font-size: 0.9em; color: #6c757d; }
.video-card-voting { padding: 1rem; border-top: 1px solid #eee; }
.video-card-title-wrapper { flex-grow: 1; }
.video-card-footer { padding-top: 1rem; border-top: 1px solid #eee; }
.status-COMPLETED { background-color: #d4edda; color: #155724; }
.status-ADMIN_REJECTED { background-color: #f8d7da; color: #721c24; }
.status-PENDING_VERIFICATION { background-color: #e9ecef; color: #495057; }
.actions-container form { margin: 0; }
.linked-channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; padding-top: 1rem; }
.channel-hidden { display: none; }
.show-more-container { text-align: center; margin-top: 1.5rem; }
.show-more-btn { background-color: #e9ecef; color: #495057; border: 1px solid #dee2e6; padding: 10px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
.show-more-btn:hover { background-color: #dee2e6; }
.channel-card-wrapper { text-align: center; }
.channel-card { display: block; position: relative; width: 128px; height: 128px; border-radius: 12px; transition: transform 0.2s ease-in-out; margin: 0 auto; padding: 3px; background-color: #ffffff; border: 3px solid #dee2e6; box-sizing: border-box; }
.channel-card:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.channel-card.youtube { border-color: #FF0000; }
.channel-card.twitch { border-color: #9146FF; }
.channel-card.tiktok { border-color: #000000; }
.channel-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.platform-logo { position: absolute; bottom: 8px; right: 8px; 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); }
.channel-info-text { margin-top: 0.5rem; width: 100%; }
.channel-info-text h3 { font-size: 1em; margin: 0; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.channel-info-text p { font-size: 0.9em; margin: 0; color: #6c757d; }
.channel-management-container { border: 1px solid #dee2e6; border-radius: 8px; margin-top: 2rem; padding: 1rem; background-color: #f8f9fa; }
.channel-management-summary { font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.channel-management-summary::-webkit-details-marker { display: none; }
.channel-management-summary h3 { margin: 0; font-size: 1.1em; }
.details-arrow { font-size: 1.5em; transition: transform 0.2s; }
details[open] > .channel-management-summary .details-arrow { transform: rotate(180deg); }
.channel-management-details { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dee2e6; }
.placeholder-neutral { width: 100%; height: 100%; background-color: #e9ecef; border-radius: 8px; }
.placeholder-cta-link { width: 100%; height: 100%; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 5px; box-sizing: border-box; background-color: #f8d7da; color: #721c24; font-weight: bold; font-size: 0.9em; text-decoration: none; }
.placeholder-cta-link small { font-weight: normal; font-size: 0.9em; margin-top: 4px; text-decoration: underline; }
.creator-infobox { transition: border-top-color 0.3s ease; border-top: 5px solid transparent; }
.favorite-btn { background: none; border: none; cursor: pointer; font-size: 2rem; padding: 0 10px; vertical-align: middle; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.favorite-btn:hover { opacity: 1; transform: scale(1.1); }
.favorite-btn.favorited { opacity: 1; filter: grayscale(0%); }
.favorite-btn:not(.favorited) { filter: grayscale(100%); }
.form-propose-idea input[type="text"], .form-propose-idea textarea { font-family: inherit; font-size: 1rem; width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; margin-top: 0.5rem; }
.form-propose-idea p { margin-bottom: 1.5rem; }
.form-propose-idea label { font-weight: bold; color: #333; }
.diamond-red { filter: grayscale(1) sepia(100%) hue-rotate(-50deg) saturate(600%) brightness(0.9); }
.nav-tabs { display: flex; border-bottom: 2px solid #dee2e6; margin-bottom: 1.5rem; gap: 5px; }
.nav-link { padding: 0.75rem 1.25rem; border: 2px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; cursor: pointer; font-weight: 600; color: #007bff; background-color: transparent; transition: all 0.2s ease-in-out; }
.nav-link:hover { border-color: #e9ecef; background-color: #e9ecef; }
.nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 transparent; }
.tab-content .tab-pane { display: none; }
.tab-content .tab-pane.active { display: block; }
.profile-header-container { display: flex; gap: 30px; align-items: flex-start; padding-top: 1.5rem; }
.profile-details > :first-child, .profile-channels > :first-child { margin-top: 0; }
.profile-details, .profile-channels { flex: 1; }
.channel-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.channel-grid li { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: #fff; border: 1px solid #eee; border-radius: 5px; }
.actions-container { margin-top: 1.5rem; border-top: 1px solid #ddd; padding-top: 1.5rem; display: flex; gap: 1rem; align-items: center; }
.creator-infobox { margin-top: 1.5rem; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 1.5rem; }
.creator-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dee2e6; }
.stat-item { flex: 1 1 120px; text-align: center; }
.stat-item h4 { margin: 0 0 5px 0; font-size: 0.9em; color: #6c757d; font-weight: 500; text-transform: uppercase; }
.stat-item p { margin: 0; font-size: 1.5em; font-weight: bold; color: #343a40; }
.profile-actions { text-align: center; }
.profile-actions .btn-propose { padding: 12px 25px; font-size: 1.1em; font-weight: bold; background-color: #28a745; color: white; text-decoration: none; border-radius: 5px; border: none; cursor: pointer; transition: background-color 0.2s; display: inline-block; text-align: center; }
.profile-actions .btn-propose:hover { background-color: #218838; }
.supporter-spotlight { margin-top: 1.5rem; padding: 1rem; background-color: #fffbeb; border: 1px solid #ffeeba; border-radius: 8px; text-align: center; }
.supporter-spotlight h4 { margin: 0 0 10px 0; font-size: 1em; color: #856404; text-transform: uppercase; }
.supporter-spotlight .supporter-name { font-size: 1.4em; font-weight: bold; margin: 0; }
.supporter-spotlight .supporter-amount { font-size: 1.1em; color: #856404; margin: 5px 0 0 0; }
.actions-container .button-secondary { padding: 10px 15px; font-size: 0.9em; font-weight: bold; background-color: #6c757d; color: white; border-radius: 5px; cursor: pointer; border: 1px solid transparent; line-height: 1.5; transition: background-color 0.2s; vertical-align: middle; }
.actions-container .button-secondary:hover { background-color: #5a6268; }
.actions-container .button-primary { display: inline-block; padding: 10px 15px; font-size: 0.9em; font-weight: bold; background-color: #28a745; color: white; text-decoration: none; border-radius: 5px; border: 1px solid transparent; line-height: 1.5; transition: background-color 0.2s; vertical-align: middle; }
.actions-container .button-primary:hover { background-color: #218838; color: white; }
.link-style-button { display: inline-block; background-color: transparent; border: 1px solid #6c757d; color: #6c757d; padding: 8px 16px; border-radius: 8px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.2s ease-in-out; outline: none; }
.link-style-button:hover, .link-style-button:focus { background-color: #5a6268; border-color: #5a6268; color: #ffffff; }
.link-style-button:active { transform: scale(0.97); background-color: #4e555b; }
.creator-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dee2e6; }
.category-tag { background-color: #e9ecef; color: #495057; padding: 5px 12px; border-radius: 20px; font-size: 0.9em; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.category-tag i { color: #007bff; }
.idea-list { list-style: none; padding: 0; }
.idea-list li { background: #f9f9f9; border: 1px solid #eee; padding: 15px; margin-bottom: 10px; border-radius: 5px; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; }
.idea-card { display: flex; flex-direction: column; background: #f9f9f9; border: 1px solid #eee; padding: 15px; border-radius: 5px; }
.idea-card-content { flex-grow: 1; }
.idea-title-link { font-weight: bold; font-size: 1.2em; color: #333; }
.btn-submit-video {display: inline-block;padding: 8px 16px;background-color: #28a745;color: white;border:none;border-radius: 5px;text-decoration: none;font-weight: bold;font-size: 0.9em;margin-left: 15px;white-space: nowrap;transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out; }
.btn-submit-video:hover { background-color: #218838; color: white; text-decoration: none; transform: translateY(-1px); }
.funded-notification { color: #155724; background-color: #d4edda; padding: 10px; margin-bottom: 10px; border-radius: 5px; border: 1px solid #c3e6cb; }
.form-propose-idea { background-color: #ffffff; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-radius: 8px; padding: 1.5rem; }
.countdown-timer { background-color: #fff3cd; color: #856404; padding: 10px 15px; margin-top: 10px; border-radius: 5px; border-left: 4px solid #ffc107; font-weight: 500; }
.modal { display: none; 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: 25px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 8px; position: relative; }
.modal-content .close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.status-box { padding: 15px; margin-top: 15px; border-radius: 4px; border-left: 4px solid; }
.status-box.completed { background-color: #d4edda; color: #155724; border-left-color: #28a745; }
.status-box.rejected { background-color: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.pledge-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.pledge-item { background: #fff; border: 1px solid #ddd; padding: 1.5rem; margin-bottom: 1rem; border-radius: 8px; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.pledge-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.pledge-info a { font-weight: bold; font-size: 1.2rem; color: #333; text-decoration: none; }
.pledge-info a:hover { text-decoration: underline; }
.pledge-info p { margin: 5px 0 0 0; font-size: 0.9rem; color: #6c757d; }
.funding-status { margin-top: 0; }
.progress-bar { width: 100%; background-color: #e9ecef; border-radius: 5px; overflow: hidden; }
.progress-bar-fill { height: 10px; background-color: #28a745; border-radius: 5px; transition: width 0.5s ease-in-out; }
.idea-creator-info { display: flex; align-items: center; gap: 10px; margin: 5px 0 0 0; }
.idea-creator-channels { display: flex; }
.idea-creator-channels img, .fallback-avatar-pledges { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #fff; margin-left: -8px; }
.fallback-avatar-pledges { display: inline-block; background-color: #e9ecef; }
.pledge-item .countdown-timer { background-color: #fff3cd; color: #856404; padding: 10px 15px; border-radius: 5px; border-left: 4px solid #ffc107; font-weight: 500; }
.pledge-item .actions form { display: flex; gap: 10px; }
.pledge-item .actions input[type="number"] { flex-grow: 1; padding: 8px; border: 1px solid #ccc; border-radius: 5px; }
.scrollable-checkboxes {
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #fff;
}
#profile-tier-info-dropdown {
    top: 200px;
    left: 110px;
    width: 280px;
}

/* === NOVÝ STYL PRO TLAČÍTKO SUPPORT/LOGIN === */
.btn-support {
    display: inline-block;
    padding: 8px 12px;
    font-size: 1em;
    font-weight: bold;
    background-color: #007bff; /* Modrá barva */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-support:hover {
    background-color: #0056b3; /* Tmavší modrá při najetí */
}

/* === ZAROVNÁNÍ PRO PLEDGE FORMULÁŘ === */

/* Kontejner, který drží pole i tlačítko */
.support-form {
    display: flex;       /* Použijeme flexbox pro snadné zarovnání */
    align-items: center; /* TOTO JE KLÍČOVÉ: Vertikálně zarovná prvky na střed */
    gap: 5px;            /* Mezera mezi prvky */
}

/* Společný styl pro pole I tlačítko uvnitř kontejneru */
.support-form input,
.support-form .btn-support {
    height: 42px;           /* Pevně nastavíme stejnou výšku */
    box-sizing: border-box;  /* Zajistí, že se výška počítá stejně u obou */
    margin: 0;               /* Odstraní případné výchozí okraje */
}

@media (max-width: 768px) {

    /* Cílíme na to konkrétní menu, které zlobí */
    #profile-tier-info-dropdown {
        /*
         * Měníme 'position: absolute' (které je vůči stránce)
         * na 'position: fixed' (které je vůči oknu).
        */
        position: fixed;
        
        /* * TOTO JE TEN TRIK:
         * Centerujeme ho: 10px od kraje zleva, 10px zprava.
        */
        left: 10px;
        right: 10px;
        
        /* * Přebijeme původní 'left: 110px'.
         * Musíme použít !important, aby to mělo sílu.
        */
        left: 10px !important;
        
        /* Přebijeme 'width: 280px' a necháme ho roztáhnout */
        width: auto;
        
        /* Posuneme ho kousek od vršku */
        top: 70px;
    }
}

/* --- Creator Pick Badge Styles --- */

/* 1. Úprava karty, aby odznak mohl "trčet" ven */
.idea-card.has-creator-badge {
    position: relative;          /* Aby se odznak chytil karty */
    overflow: visible !important; /* KLÍČOVÉ: Aby odznak nebyl uříznutý nahoře */
    z-index: 1;                  /* Aby byla karta vrstvená správně */
}

/* 2. Samotný vzhled odznaku */
.creator-pick-badge {
    position: absolute;
    top: -10px;                 /* Vyčnívá nahoru */
    right: 15px;                /* Zarovnání doprava */
    background-color: #FFD700;  /* Zlatá */
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;        /* Kulaté rohy */
    z-index: 100;               /* Musí být nad vším */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Stín */
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}