/* Event Image Container Styles */
.event-image-container {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 3 / 2;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-right: 1rem;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    background: #e5e7eb;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #e5e7eb;
}

.event-image-container:hover .event-image {
    transform: scale(1.1);
}

.event-image-container.placeholder-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.event-image-container.placeholder-container i {
    font-size: 2.5rem;
    color: #6b7280;
}

.event-entry {
    transition: all 0.3s ease;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    width: 100%;
}

.event-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.event-entry .event-week {
    font-size: 1.2rem;
    color: white;
}

.event-entry .event-date {
    color: white;
    font-weight: 500;
}

.event-entry .event-name {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.recap-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.recap-badge.active-badge {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

.recap-badge.ace-pot-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.recap-badge.ace-pot-badge:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.3));
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.recap-badge.ace-pot-badge i {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.event-history-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1.5rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 320px;
}

.event-history-header {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-history-title {
    color: white;
    font-weight: 600;
    margin: 0;
}

.list-group-flush {
    padding: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.empty-state-message {
    color: rgba(255, 255, 255, 0.7);
}

/* Day Badge Styles */
.day-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-badge {
    display: inline-block;
    background: #4561dd;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    text-align: center;
}

/* Your Bag Tag Section Styles */
.your-bag-tag-section {
    background-color: var(--surface-1);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.your-bag-tag-section:hover {
    box-shadow: var(--card-hover-shadow);
}

.your-bag-tag-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem 1.5rem 0.5rem;
}

.your-bag-tag-title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.your-bag-tag-divider {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.weekly-summary-container {
    margin: 0 1.5rem 1.5rem 1.5rem;
}

.weekly-summary {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    height: 100%;
}

.weekly-summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.weekly-summary .card-body {
    padding: 1.5rem;
}

.weekly-summary h4 {
    color: var(--theme-primary, #3b82f6);
    margin-bottom: 1rem;
    font-weight: 600;
}

.weekly-summary-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.weekly-summary-content p {
    margin-bottom: 0.75rem;
}

/* Custom styles for the bag tag in the "Your Bag Tag" section */
.your-bag-tag {
    margin: 0 auto;
    width: 100%;
    max-width: 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.your-bag-tag:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* FlippySays component styling */
.flippy-says {
    background-color: var(--surface-1);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.flippy-says:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

/* Allow Flippy's action text to be more visible */
.flippy-action {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Tab styles for better visibility - with higher specificity */
.series-details-page .nav-tabs .nav-link {
    color: var(--text-primary, #374151);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.series-details-page .nav-tabs .nav-link:hover {
    color: var(--theme-primary, #3b82f6);
    background-color: rgba(59, 130, 246, 0.1);
}

.series-details-page .nav-tabs .nav-link.active {
    background-color: var(--surface-1, #ffffff);
    color: var(--theme-primary, #3b82f6);
    border-color: var(--border-color, #e5e7eb);
    font-weight: 700;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .event-image-container.placeholder-container {
        background: linear-gradient(135deg, #374151, #1f2937);
    }

    .event-image-container.placeholder-container i {
        color: #9ca3af;
    }

    .flippy-says {
        background-color: var(--surface-2, #1e293b);
        border: 1px solid rgba(96, 165, 250, 0.15);
    }

    .flippy-says-intro {
        border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    }

    .flippy-action {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Dark mode for your bag tag section */
    .your-bag-tag-section {
        background-color: var(--surface-2, #1e293b);
    }

    .your-bag-tag:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    /* Dark mode for tabs - improved contrast with higher specificity */
    .series-details-page .nav-tabs .nav-link {
        color: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .series-details-page .nav-tabs .nav-link:hover {
        color: #93c5fd !important;
        background-color: rgba(147, 197, 253, 0.15) !important;
        border-color: rgba(147, 197, 253, 0.3);
        transform: translateY(-1px);
    }

    .series-details-page .nav-tabs .nav-link.active {
        background-color: rgba(96, 165, 250, 0.2) !important;
        color: #93c5fd !important;
        border-color: rgba(96, 165, 250, 0.4);
        border-bottom-color: transparent;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
    }

    .tab-content {
        background-color: var(--surface-2, #1e293b);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        border-radius: 0 0 0.5rem 0.5rem;
    }
}

/* Featured Event Styles */
.featured-event-images {
    display: flex !important;
    visibility: visible !important;
}

.featured-league-image-box {
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-1, white);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.featured-league-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.featured-league-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.featured-event-image-box {
    visibility: visible !important;
    display: block !important;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.featured-event-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
}

/* Series Leaderboard Button */
.series-leaderboard-btn {
    background-image: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.series-leaderboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}