/* static/css/styles.css */

/* Define the Red Wine color variable */
:root {
    --wine-red: #800000;  /* Red Wine color */
    --maroon-primary: #722f37; /* This was missing. Using color from existing box-shadow */
    --maroon-dark: #5a252c;   /* This was missing. Darker version for hover states */
    --primary-color: #800020;
    --secondary-color: #4a1c40;
    --accent-color: #ffd700;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

/* Body Styling */
body {
    background-color: #f5f5f5;  /* Light background color for contrast */
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: var(--wine-red);  /* Red Wine background color */
}

.navbar-brand {
    font-weight: bold;
    color: white;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: #ffcccb !important;  /* Light red for hover effect */
}

/* Hero Section with Vineyard Background */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background-color: var(--wine-red);  /* Red Wine background color */
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
}

/* Tasting Room Styles */
.tasting-room {
    position: relative;
    min-height: 100vh;
    background-color: #f5f5f5;
    overflow: hidden;
}

.vineyard-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/vineyard-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.tasting-table {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(139, 69, 19, 0.85), rgba(139, 69, 19, 0.75));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 1200px;
    backdrop-filter: blur(5px);
}

/* Wine Hero Section */
.wine-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.wine-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 95%;
    z-index: 1;
}

/* Wine Progress Section */
.wine-progress-section {
    position: relative;
    z-index: 2;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 1rem auto;
    padding: 1rem;
    max-width: 1200px;
}

.wine-carousel-wrapper {
    position: relative;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wine-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.wine-carousel {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.wine-card {
    position: relative;
    width: 130px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.wine-card.completed {
    transform: scale(0.9);
    opacity: 0.7;
}

.wine-card.active {
    transform: scale(1.1);
}

.wine-card-inner {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wine-image {
    width: 100%;
    height: 130px;
    object-fit: contain;
    margin: 1rem 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wine-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wine-status {
    margin-top: 0.5rem;
}

/* Carousel Navigation Buttons */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-control:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-control i {
    font-size: 1.5rem;
}

/* Navigation Pills and Buttons */
.nav-pills .nav-link {
    color: #800000;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #800000;
    color: white;
}

.btn-maroon {
    background-color: #800000;
    border-color: #800000;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-maroon:hover {
    background-color: #600000;
    border-color: #600000;
    color: white;
}

/*
 * Host Control Button Overrides
 * Using a parent selector and !important to ensure these styles
 * override the default Bootstrap blue button styles.
*/
.host-controls .btn.btn-maroon-solid,
.host-controls .btn.btn-maroon-solid:focus {
    background-color: #800000 !important;
    border-color: #800000 !important;
    color: white !important;
    box-shadow: none !important;
}

.host-controls .btn.btn-maroon-solid:hover {
    background-color: #600000 !important;
    border-color: #600000 !important;
}

.host-controls .btn.btn-maroon-outline,
.host-controls .btn.btn-maroon-outline:focus {
    background-color: transparent !important;
    border-color: #800000 !important;
    color: #800000 !important;
    box-shadow: none !important;
}

.host-controls .btn.btn-maroon-outline:hover {
    background-color: #800000 !important;
    color: white !important;
}

.btn-success {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
}

/* Wine Details */
.wine-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wine-notes {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table-active {
    background-color: rgba(128, 0, 0, 0.1) !important;
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Pulse Animation */
.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .wine-hero {
        height: 300px;
    }
    
    .wine-carousel {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .wine-card {
        min-width: 100px;
        max-width: 110px;
        margin-right: 0.5rem;
    }
    
    .wine-image {
        width: 60px;
        height: 150px;
    }

    .btn-maroon, .btn-success {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Host View Styles */
.host-nav-controls {
    display: flex;
    gap: 0.5rem;
}

.wine-mini-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.wine-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wine-mini-card.border-primary {
    border-width: 2px !important;
}

.wine-number-small {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--wine-red);
    margin-bottom: 0.25rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--wine-red), #a0522d);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.user-submissions .table {
    font-size: 0.875rem;
}

.user-submissions .table th {
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.user-submissions .table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

.badge-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.all-wines-overview .card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.all-wines-overview .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wine-details .card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wine-details .card-title {
    color: var(--wine-red) !important;
    font-weight: bold;
}

.wine-notes h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wine-notes .small {
    line-height: 1.4;
    color: #495057;
}

/* Responsive adjustments for host view */
@media (max-width: 768px) {
    .host-nav-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .host-nav-controls .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .wine-mini-card .card-body {
        padding: 0.5rem !important;
    }
    
    .wine-number-small {
        font-size: 1rem;
    }
    
    .user-submissions .table {
        font-size: 0.75rem;
    }
    
    .user-submissions .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Price Display Styles */
.price-section {
    text-align: center;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.price-value .badge {
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-range-indicator {
    text-align: center;
}

.price-range-indicator .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Responsive price display */
@media (max-width: 768px) {
    .price-section {
        margin-top: 1rem;
        text-align: center;
    }
    
    .price-value .badge {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .price-range-indicator {
        margin-top: 0.5rem;
    }
}

/*
 * Evaluation Form Styles
 * ---------------------- */

.evaluation-choices .btn-check + .btn {
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.evaluation-choices .btn-check:checked + .btn {
    color: #fff;
    background-color: var(--maroon-primary);
    border-color: var(--maroon-primary);
    box-shadow: 0 0 0 0.25rem rgba(114, 47, 55, 0.25);
    transform: translateY(-2px);
}

.evaluation-choices .btn-check:focus + .btn,
.evaluation-choices .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(114, 47, 55, 0.25);
}

.evaluation-choices .btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.evaluation-choices .btn-check:checked + .btn:hover {
    background-color: var(--maroon-dark);
    border-color: var(--maroon-dark);
}

/*
 * Tasting Results Page Styles - Gaming Leaderboard Design
 * ------------------------------------------------------ */

/* Results Hero Section - Gaming Style */
.results-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 4px solid #ffd700;
}

.results-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.results-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.results-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.results-hero .lead {
    font-size: 1.2rem;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Main Container with Gaming Background */
.results-container {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.results-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Winner Section - Champion Spotlight */
.winner-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.winner-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.3),
        0 0 0 4px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(255, 215, 0, 0.4),
        0 0 0 4px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.winner-card::before {
    content: '👑';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 5rem;
    opacity: 0.3;
    transform: rotate(15deg);
    animation: float 3s ease-in-out infinite;
}

.winner-card::after {
    content: '🏆';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 4rem;
    opacity: 0.3;
    transform: rotate(-15deg);
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}

.winner-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid white;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffd700;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.winner-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.winner-avatar-placeholder::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 2;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.winner-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.winner-subtitle {
    font-size: 1.2rem;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 2rem;
}

.winner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

.stat-item:nth-child(1)::before { content: '🎯'; }
.stat-item:nth-child(2)::before { content: '📊'; }
.stat-item:nth-child(3)::before { content: '🍷'; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a2e;
    display: block;
    margin-top: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #1a1a2e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Leaders - Gaming Cards */
.category-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.8;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.category-header {
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.category-header.price { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}
.category-header.aroma { 
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}
.category-header.taste { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}
.category-header.color { 
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}
.category-header.grape { 
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

.leader-list {
    padding: 0;
    margin: 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.2);
}

.leader-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.leader-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.leader-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.leader-score {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 600;
}

.medal {
    font-size: 1.8rem;
    margin-left: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Wine Rankings - Gaming Cards */
.wine-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.wine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .wine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .wine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wine-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.wine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.wine-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.wine-content {
    padding: 2rem;
}

.wine-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.wine-details {
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.wine-score {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
}

.score-label {
    font-size: 1rem;
    color: #ffffff;
    margin-right: 0.5rem;
    font-weight: 600;
}

.score-value {
    font-weight: 700;
    color: #ffd700;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.score-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.score-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wine-leaderboard {
    margin-top: 1.5rem;
}

.leaderboard-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-name {
    color: #ffffff;
    font-weight: 600;
}

.leaderboard-score {
    font-weight: 700;
    color: #ffd700;
    font-size: 1.1rem;
}

/* Overall Leaderboard - Gaming Table */
.leaderboard-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.leaderboard-table {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.table-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    padding: 1.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-row {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.user-stats {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
}

.stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.stat-value {
    font-weight: 800;
    color: #ffd700;
    font-size: 1.2rem;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Responsive adjustments for gaming design */
@media (max-width: 768px) {
    .results-hero h1 {
        font-size: 2.5rem;
    }
    
    .results-hero h2 {
        font-size: 1.5rem;
    }
    
    .winner-name {
        font-size: 2rem;
    }
    
    .winner-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rank {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* Overall Leaderboard - Gamified Horizontal Cards */
.leaderboard-overall-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.leaderboard-card {
  display: flex;
  align-items: center;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 1.2rem 1.5rem;
  background: #23233b;
  position: relative;
  min-height: 90px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.leaderboard-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Rank-based backgrounds */
.leaderboard-rank-1 { background: linear-gradient(90deg, #ffe066 60%, #fffbe6 100%); }
.leaderboard-rank-2 { background: linear-gradient(90deg, #c0c0c0 60%, #f8f9fa 100%); }
.leaderboard-rank-3 { background: linear-gradient(90deg, #cd7f32 60%, #f3e6d0 100%); }
.leaderboard-rank-4, .leaderboard-rank-5, .leaderboard-rank-6, .leaderboard-rank-7, .leaderboard-rank-8, .leaderboard-rank-9, .leaderboard-rank-10 {
  background: linear-gradient(90deg, #4f8cff 60%, #e6f0ff 100%);
}

.leaderboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #23233b;
  margin-right: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  flex-shrink: 0;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  font-size: 2rem;
  font-weight: 700;
  color: #23233b;
}

.leaderboard-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.leaderboard-row-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.leaderboard-rank {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
.leaderboard-score {
  font-size: 2rem;
  font-weight: 900;
  color: #23233b;
  margin-right: 0.7rem;
}
.leaderboard-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #23233b;
}

.leaderboard-row-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
  color: #23233b;
  opacity: 0.8;
}
.leaderboard-place {
  font-weight: 500;
}
.leaderboard-games {
  font-weight: 400;
}

.leaderboard-progress-bar {
  width: 100%;
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}
.leaderboard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(.4,2,.6,1);
}

@media (max-width: 600px) {
  .leaderboard-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.7rem;
    min-height: 70px;
  }
  .leaderboard-avatar {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  .leaderboard-row-top {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }
  .leaderboard-score {
    font-size: 1.3rem;
  }
  .leaderboard-name {
    font-size: 1rem;
  }
  .leaderboard-row-bottom {
    font-size: 0.95rem;
    gap: 0.7rem;
  }
}

/* Wine Bar Leaderboard - Gamified Horizontal Bars */
.wine-bar-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.wine-bar-row {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #800020 60%, #a83250 100%);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(128,0,32,0.10);
  padding: 0.9rem 1.2rem;
  min-height: 70px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.wine-bar-row:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 24px rgba(128,0,32,0.18);
}
.wine-bar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #800020;
  margin-right: 1rem;
  box-shadow: 0 1px 4px rgba(128,0,32,0.10);
  overflow: hidden;
}
.wine-bar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.wine-bar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wine-bar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fffbe6;
  margin-bottom: 0.2rem;
}
.wine-bar-progress-bar {
  width: 100%;
  height: 10px;
  background: #f5e6e6;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.wine-bar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #a83250 100%);
  border-radius: 5px;
  transition: width 0.7s cubic-bezier(.4,2,.6,1);
}
.wine-bar-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
  margin-left: 1.2rem;
  min-width: 48px;
  text-align: right;
}
@media (max-width: 600px) {
  .wine-bar-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.5rem;
    min-height: 56px;
  }
  .wine-bar-avatar {
    margin-bottom: 0.4rem;
    margin-right: 0;
  }
  .wine-bar-title {
    font-size: 1rem;
  }
  .wine-bar-score {
    font-size: 1.1rem;
    margin-left: 0;
    margin-top: 0.3rem;
  }
}

/* BYB Special Awards Section */
.byb-awards-section {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.byb-awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .byb-awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .byb-awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.byb-award-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.byb-award-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cheapest-award {
  border-color: rgba(34, 139, 34, 0.5);
}

.cheapest-award:hover {
  border-color: rgba(34, 139, 34, 0.8);
  box-shadow: 0 20px 40px rgba(34, 139, 34, 0.3);
}

.expensive-award {
  border-color: rgba(255, 215, 0, 0.5);
}

.expensive-award:hover {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.quality-price-award {
  border-color: rgba(138, 43, 226, 0.5);
}

.quality-price-award:hover {
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.award-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cheapest-badge {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.expensive-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a2e;
}

.quality-price-badge {
  background: linear-gradient(135deg, #8a2be2 0%, #9370db 100%);
  color: white;
}

.award-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.award-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffd700;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-style: italic;
}

.award-wine-info {
  width: 100%;
  margin-bottom: 1.5rem;
}

.award-wine-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
}

.award-wine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.award-wine-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.award-wine-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.award-wine-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.award-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.award-stat-label {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

.award-stat-value {
  font-size: 1rem;
  color: #ffd700;
  font-weight: 700;
}

.award-winner {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.award-winner-label {
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.award-winner-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
}

.award-winner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.award-winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.award-winner-details {
  flex: 1;
  text-align: left;
}

.award-winner-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.award-winner-guess {
  font-size: 0.85rem;
  color: #ffd700;
  margin-bottom: 0.2rem;
}

.award-winner-score {
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0.8;
}

.award-owner {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.award-owner-label {
  font-size: 0.85rem;
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.award-owner-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.8rem;
  border-radius: 10px;
}

.award-owner-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.award-owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.award-owner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 768px) {
  .byb-awards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .byb-award-card {
    padding: 1.5rem;
  }
  
  .award-badge {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .award-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .award-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }
  
  .award-wine-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 0.8rem;
  }
  
  .award-wine-name {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .award-wine-price {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .award-owner {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }
  
  .award-owner-info {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    padding: 0.7rem;
  }
  
  .award-owner-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .award-owner-name {
    font-size: 0.9rem;
  }
  
  .award-winner {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }
  
  .award-winner-info {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .award-winner-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .award-winner-details {
    text-align: center;
  }
  
  .award-winner-name {
    font-size: 0.95rem;
  }
  
  .award-winner-guess,
  .award-winner-score {
    font-size: 0.8rem;
  }
  
  .award-wine-stats {
    margin-top: 0.8rem;
    gap: 0.4rem;
  }
  
  .award-stat {
    padding: 0.4rem;
  }
  
  .award-stat-label {
    font-size: 0.85rem;
  }
  
  .award-stat-value {
    font-size: 0.9rem;
  }
}

/*
 * Detailed Submissions Section Styles
 * ----------------------------------- */

.detailed-submissions-section {
    margin: 3rem 0;
}

.submissions-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.submission-wine-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.submission-wine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.submission-wine-header {
    background: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.submission-wine-header:hover {
    background: linear-gradient(135deg, #a52a2a 0%, #800000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.submission-wine-header:active {
    transform: translateY(0);
}

.wine-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wine-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.wine-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wine-details h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wine-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wine-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    opacity: 0.8;
}

.submission-wine-header:hover .collapse-icon {
    opacity: 1;
}

.submission-wine-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.submission-table-container {
    padding: 1.5rem;
}

/* Accordion collapse functionality */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Smooth transitions for accordion */
.submission-wine-card .collapse {
    transition: all 0.3s ease-in-out;
}

.submission-details-table {
    font-size: 0.9rem;
}

.submission-details-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem 0.5rem;
}

.submission-details-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.submission-row:hover {
    background-color: #f8f9fa;
}

.rank-cell {
    text-align: center;
    width: 60px;
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.participant-cell {
    min-width: 200px;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.participant-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #800000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.participant-name {
    font-weight: 600;
    color: #333;
}

.participant-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.rating-cell, .price-cell {
    text-align: center;
    width: 80px;
}

.rating-badge {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-value {
    font-weight: 600;
    color: #28a745;
}

.score-cell {
    text-align: center;
    width: 80px;
}

.score-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    display: inline-block;
}

.score-badge.score-excellent {
    background: #28a745;
    color: white;
}

.score-badge.score-good {
    background: #17a2b8;
    color: white;
}

.score-badge.score-average {
    background: #ffc107;
    color: #333;
}

.score-badge.score-poor {
    background: #dc3545;
    color: white;
}

.taste-cell, .aroma-cell, .color-cell {
    max-width: 150px;
}

.description-text {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.3;
}

.grape-cell {
    max-width: 120px;
}

.grape-list {
    font-size: 0.85rem;
    color: #6c757d;
}

.total-score-cell {
    text-align: center;
    width: 100px;
}

.total-score-badge {
    background: linear-gradient(135deg, #800000, #a52a2a);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
}

/* Responsive adjustments for detailed submissions */
@media (max-width: 1200px) {
    .submission-details-table {
        font-size: 0.8rem;
    }
    
    .submission-details-table th,
    .submission-details-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .taste-cell, .aroma-cell, .color-cell {
        max-width: 120px;
    }
    
    .grape-cell {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .submission-wine-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .wine-stats {
        justify-content: center;
    }
    
    .submission-table-container {
        padding: 1rem;
    }
    
    .submission-details-table {
        font-size: 0.75rem;
    }
    
    .participant-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .participant-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
