/* ===================================
   Winners Page - New Design Styles
   =================================== */

/* Reset and Base Styles */
.winners-page {
    margin-top: 190px;
    font-family: 'Lato', sans-serif;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.winners-page * {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.winners-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
}

.winners-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -1px;
}

/* ===================================
   Hero Section - Grand Prix Winners
   =================================== */
.grand-prix-section {
    background: white;
    padding: 40px 0 60px;
}

.grand-prix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 120px 0 120px;
}

@media (max-width: 1200px) {
    .grand-prix-grid {
        margin: 20px 80px 0 80px;
    }
}

@media (max-width: 1024px) {
    .grand-prix-grid {
        margin: 20px 40px 0 40px;
    }
}

@media (max-width: 1024px) {
    .grand-prix-grid {
        margin: 20px 40px 0 40px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .grand-prix-grid {
        margin: 20px 20px 0 20px;
        gap: 15px;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .grand-prix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grand-prix-grid {
        margin: 20px 0 0 0;
        grid-template-columns: 1fr;
    }
}

.grand-prix-card {
    background: #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grand-prix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gp-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gp-badge {
    background: #0d2d58;
    color: white;
    padding: 8px 15px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.gp-image-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #ddd;
}

.gp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gp-country {
    font-size: 12px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.gp-country i {
    color: #1a1a1a;
}

.gp-country span {
    font-weight: 500;
}

.gp-film-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.gp-credits {
    color: #666;
    line-height: 1.5;
}

.gp-credits p {
    margin: 5px 0;
    font-size: 12px;
}

.gp-credits span {
    font-weight: normal;
    color: rgba(33, 35, 38, 0.55);
}

/* ===================================
   Special Awards Section
   =================================== */
.special-awards-section {
    background: url('../img/Banner_winners.jpg') center center no-repeat;
    background-size: cover;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.special-awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.special-award-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.special-award-card:hover {
    transform: translateY(-5px);
}

.special-award-card.active {
    transform: translateY(-15px);
    box-shadow: 0 10px 30px rgba(30, 77, 139, 0.4);
    z-index: 10;
}

.sa-header {
    background: #f8f8f8;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    text-transform: uppercase;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-content {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sa-image-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #ddd;
}

.sa-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-company-name {
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Filter Section
   =================================== */
.winners-filter-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.winners-filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item.year-filter {
    flex: 0 0 120px;
    min-width: 120px;
}

.filter-item.search-area {
    flex: 0 0 200px;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #f0f0f0;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path fill="%23c9c9c9" d="M0 0l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.filter-select:hover:not(:disabled) {
    border-color: #999;
}

.filter-select:focus {
    outline: none;
    border-color: #1e4d8b;
    box-shadow: 0 0 0 3px rgba(30, 77, 139, 0.1);
}

.filter-select:disabled {
    background: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #f0f0f0;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    vertical-align: middle;
    line-height: normal;
}

.search-input {
    padding-left: 35px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231e4d8b" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
    margin-bottom: 0px !important;
}

.search-input.has-value {
    background-image: none;
    padding-left: 12px;
}

.filter-input:hover {
    border-color: #999;
}

.filter-input:focus {
    outline: none;
    border-color: #1e4d8b;
    box-shadow: 0 0 0 3px rgba(30, 77, 139, 0.1);
}


.filter-buttons {
    display: flex;
    gap: 10px;
    flex: 0;
    min-width: auto;
}

.btn-search,
.btn-clear {
    padding: 10px 25px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.btn-search {
    background: #c9c9c9;
    color: #1a1a1a;
}

.btn-search:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.btn-clear {
    background: #c9c9c9;
    color: #1a1a1a;
}

.btn-clear:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* ===================================
   Awards by Category Sections
   =================================== */
.awards-categories-section {
    background: white;
    padding: 40px 0;
}

.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.category-title {
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    background: #f0f0f0;
    padding: 5px;
}

.see-full-list {
    color: #1e4d8b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.see-full-list:hover {
    color: #164070;
    text-decoration: none;
}

/* Category Films Slider */
.category-films-slider {
    position: relative;
}

.films-slider-container {
    overflow: hidden;
    width: 100%;
}

.category-films-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.category-films-grid .film-card {
    flex: 0 0 calc(25% - 18.75px); /* 4 cards visible */
    max-width: calc(25% - 18.75px);
}

/* Slider Scrollbar */
.slider-scrollbar {
    width: calc(100% - 120px);
    height: 12px;
    background: #e0e0e0;
    margin: 20px 60px 0 60px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1a1a1a;
    cursor: grab;
    transition: background 0.2s ease;
}

.slider-thumb:hover {
    background: #333;
}

.slider-thumb:active {
    cursor: grabbing;
    background: #000;
}

/* See More Card */
.see-more-card {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* ===================================
   Filtered Layout (when category filters are active)
   =================================== */

/* Hide slider functionality when filtered */
.winners-page.filtered-layout .slider-scrollbar {
    display: none;
}

.winners-page.filtered-layout .category-films-slider.filtered-mode {
    position: static;
}

.winners-page.filtered-layout .films-slider-container {
    overflow: visible;
}

/* Grand Prix Grid - Filtered Layout */
.grand-prix-grid.filtered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Special Awards Grid - Filtered Layout */
.special-awards-grid.filtered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Category Films Grid - Filtered Layout */
.category-films-grid.filtered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transform: none !important;
}

.category-films-grid.filtered-grid .film-card {
    flex: none;
    max-width: none;
}

/* Tablet - Filtered Layout (2 columns) */
@media (max-width: 1024px) {
    .grand-prix-grid.filtered-grid,
    .special-awards-grid.filtered-grid,
    .category-films-grid.filtered-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Filtered Layout (1 column) */
@media (max-width: 767px) {
    .grand-prix-grid.filtered-grid,
    .special-awards-grid.filtered-grid,
    .category-films-grid.filtered-grid {
        grid-template-columns: 1fr;
    }
}

.see-more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 20px;
}

.see-more-text {
    text-align: center;
}

.see-more-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.see-more-text p {
    font-size: 14px;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.see-more-arrow {
    font-size: 20px;
    color: #1a1a1a;
}

.see-more-card:hover {
    background: #c9c9c9;
}

.see-more-card .film-card-link {
    height: 100%;
}

.film-card {
    background: #f0f0f0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.film-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.film-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-badge {
    padding: 10px;
    font-size: 11px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.film-country {
    padding: 10px;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

.film-country i {
    color: #1a1a1a;
}

.film-country span {
    font-weight: 500;
}

.film-image-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
}

.film-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.film-category {
    margin-top: 0;
}

.film-title {
    margin-top: auto;
}

.film-category {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.film-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.film-credits {
    color: #666;
    line-height: 1.5;
}

.film-credits p {
    margin: 5px 0;
    font-size: 12px;
}

.film-credits span {
    font-weight: normal;
    color: rgba(33, 35, 38, 0.55);
}

.category-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0 20px;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .special-awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-films-grid .film-card {
        flex: 0 0 calc(50% - 12.5px); /* 2 cards visible */
        max-width: calc(50% - 12.5px);
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item,
    .filter-item.year-filter,
    .filter-item.search-area {
        width: 100%;
        flex: 1;
        min-width: auto;
    }

    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .btn-search,
    .btn-clear {
        flex: 1;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .winners-title {
        font-size: 32px;
    }

    .winners-header {
        padding: 40px 20px 30px;
    }

    .grand-prix-section,
    .special-awards-section {
        padding: 30px 0;
    }

    .special-awards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-films-grid .film-card {
        flex: 0 0 100%; /* 1 card visible */
        max-width: 100%;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-title {
        font-size: 20px;
    }

    .gp-badge {
        font-size: 14px;
        padding: 10px 15px;
    }

    .gp-film-title {
        font-size: 18px;
    }

    .sa-header {
        font-size: 14px;
        padding: 12px 15px;
    }

    .film-title {
        font-size: 15px;
    }

    .winners-filter-section {
        position: relative;
        padding: 20px 0;
    }

    .filter-row {
        gap: 10px;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-search,
    .btn-clear {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .winners-title {
        font-size: 28px;
    }

    .gp-info,
    .film-info {
        padding: 15px;
    }

    .gp-film-title {
        font-size: 16px;
    }

    .film-title {
        font-size: 14px;
    }

    .award-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .film-country {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* ===================================
   Loading and Animation States
   =================================== */
.winners-page .loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Smooth transitions for filtering */
.category-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects refinement */
.film-card-link:hover .film-image {
    transform: scale(1.05);
}

.film-image {
    transition: transform 0.3s ease;
}

/* Focus styles for accessibility */
.filter-select:focus,
.btn-search:focus,
.btn-clear:focus,
.see-full-list:focus {
    outline: 2px solid #1e4d8b;
    outline-offset: 2px;
}

/* Ensure no underlines on any links */
.winners-page a {
    text-decoration: none;
}

.winners-page a:hover {
    text-decoration: none;
}

/* ===================================
   Single Entry Page Styles
   =================================== */

.single-entry-page {
    margin-top: 190px;
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
}

.video-section {
    padding: 0;
}

.video-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
}

.video-placeholder {
    background: #333;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.single-entry-page .video-placeholder {
    background: none;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    overflow: hidden;
}

.single-entry-page .video-placeholder .placeholder-image {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.video-placeholder p {
    margin-top: 20px;
    font-size: 18px;
    color: #ccc;
}

.entry-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.award-info-section {
    background: white;
    padding: 40px 0;
}

.award-info-container {
    margin: 0 auto;
}

.award-badge-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.single-entry-page .award-badge {
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
}

.single-entry-page .award-country {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
}

.single-entry-page .award-country i {
    color: #999;
}

.single-entry-page .category-info {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.single-entry-page .category-code {
    margin-right: 8px;
}

.single-entry-page .film-title {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.single-entry-page .film-details {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
}

/* Video carousel indicators */
.single-entry-page .carousel-indicators {
    position: static;
    margin: 20px 0 0 0;
    justify-content: center;
}

.single-entry-page .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
    text-indent: -9999px;
    cursor: pointer;
}

.single-entry-page .carousel-indicators li.active {
    background-color: #1a1a1a;
}

.single-entry-page .detail-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.single-entry-page .detail-row:last-child {
    margin-bottom: 0;
}

.single-entry-page .detail-label {
    font-weight: normal;
    color: rgba(33, 35, 38, 0.55);
    min-width: 110px;
    max-width: 110px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 2px;
}

.single-entry-page .detail-value {
    color: #666;
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
    padding-left: 10px;
}

.single-entry-page .film-info {
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* Single Entry Responsive Design */
@media (max-width: 768px) {
    .single-entry-page .award-badge-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .single-entry-page .film-title {
        font-size: 28px;
    }

    .single-entry-page .film-details {
        padding: 20px;
    }

    .single-entry-page .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .single-entry-page .detail-label {
        min-width: auto;
    }
}

/* Video.js custom styling for single entry */
.vjs-theme-forest .vjs-control-bar {
    background: rgba(0,0,0,0.7);
}

/* Print styles */
@media print {
    .winners-filter-section,
    .see-full-list {
        display: none;
    }

    .winners-page {
        background: white;
    }

    .special-awards-section {
        background: #f0f0f0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}