/* style.css - Pełna wersja scalona */
body#gadestester_body {
    background: #000 url('gadestester/img/background.jpg') no-repeat right top fixed;
}
body#gadesmusic_body {
    background: #000 url('gadesmusic/img/background.jpg') no-repeat right top fixed;
}
body#gadaniegadesa_body {
    background: #000 url('gadaniegadesa/img/background.jpg') no-repeat right top fixed;
}


/* 1. Ustawienia globalne i tło strony */
body {
    color: #eee;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}
a {
    color: #E45A50;
}

/* 2. Główny kontener aplikacji */
.gadestester {
    width: 80%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* 3. Pasek filtrów i wyszukiwarki */
.filter-bar {
    margin-bottom: 20px;
    padding: 15px 25px;
    background: rgba(35, 35, 35, 0.92) !important;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Układ pionowy dla wiersza głównego i zaawansowanego */
/* Definitywne wymuszenie układu blokowego dla formularza */
.filter-bar form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Wiersz główny filtrów */
.main-filter-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-bar label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Pola formularza Fusion Style */
input[type="text"],
select {
    background-color: #353535 !important;
    color: #fff !important;
    border: 1px solid #1e1e1e !important;
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
select:focus {
    border-color: #3d8ec9 !important;
}

button[type="submit"] {
    background-color: #3d8ec9;
    color: #fff;
    border: 1px solid #1e1e1e;
    border-radius: 2px;
    padding: 6px 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

button[type="submit"]:hover {
    background-color: #4da3e0;
}

.clear-filters {
    color: #888 !important;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.2s;
    margin-left: 10px;
}

.clear-filters:hover {
    color: #fff !important;
}

.results-count {
    font-size: 13px;
    color: #aaa;
}

.yt-link {
    color: #ff4b4b;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 3px;
    transition: all 0.2s;
}

.yt-link:hover {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

/* 4. Sekcja Zaawansowane (HTML5 Details) */
.advanced-filters {
    margin-top: 15px;
    border-top: 1px solid #444;
    padding-top: 15px;
    width: 100%;
    display: block; /* Zapewnia poprawne zachowanie elementu details */
}

.advanced-filters summary {
    cursor: pointer;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
    outline: none;
    list-style: none;
    display: inline-block;
}

.advanced-filters summary::-webkit-details-marker {
    display: none;
}

.advanced-filters summary:hover {
    color: #3d8ec9;
}

.advanced-content {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 20px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 2px;
    border: 1px solid #222;
}

.advanced-content label {
    font-size: 13px;
    color: #bbb;
    font-weight: normal;
}

/* 5. Lista filmów */
.video-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid #333;
    border-radius: 3px;
}

.video-link {
    color: #3d8ec9;
    text-decoration: none;
    transition: color 0.2s;
}

.video-link:hover {
    color: #5fb1ee;
}

.video-item h3 {
    margin: 0 0 5px 0;
    font-weight: 400;
    font-size: 1.4em;
}

.video-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.video-content-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.video-player {
    flex: 0 0 560px;
}

.video-player iframe {
    border: 1px solid #111;
    display: block;
    background: #000;
}

.video-description {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
    min-height: 315px;
}

/* 6. Tagi wideo wewnątrz opisu */
.video-tags-container {
    margin-top: 20px;
    background: rgba(45, 45, 45, 0.5);
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #333;
}

.video-tags-container summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #3d8ec9;
    outline: none;
    list-style: none;
}

.video-tags-container summary::-webkit-details-marker {
    display: none;
}

.video-tags-container summary::before {
    content: "» ";
}

.video-tags-container[open] summary::before {
    content: "« ";
}

.tags-list {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
    line-height: 1.4;
    text-align: left;
}

/* 7. Paginacja */
.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    padding-bottom: 10px;
}

.pagination {
    display: flex;
    gap: 6px;
}

.pagination a {
    color: #eee;
    background: #333;
    border: 1px solid #1e1e1e;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #3d8ec9;
    background: #444;
}

.pagination a.active {
    background: #3d8ec9;
    color: #fff;
    border-color: #1e1e1e;
}

/* 8. Responsywność (RWD) */
@media screen and (max-width: 1150px) {
    .gadestester {
        width: 100%;
        margin: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .video-content-wrapper {
        flex-direction: column;
    }

    .video-player {
        flex: none;
        width: 100%;
    }

    .video-player iframe {
        width: 100%;
        height: 56.25vw;
    }

    .video-description {
        min-height: 0;
        width: 100%;
    }

    .main-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .advanced-content {
        flex-direction: column;
        align-items: stretch;
    }

    .yt-link {
        margin-left: 0;
        text-align: center;
    }
}