/* Bag Tag History Tab Styles */

/* Tab Button Thumbnail */
.bag-tag-tab-thumbnail {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Bag Tag Showcase Thumbnail (in accordion body) */
.bag-tag-showcase-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Container */
.bag-tag-history-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.bag-tag-hero-section {
    background: var(--surface-1, #fff);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.bag-tag-hero-image {
    text-align: center;
    margin-bottom: 2rem;
}

.bag-tag-hero-image img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* This Week's Action */
.this-week-action {
    background: linear-gradient(135deg,
    var(--league-primary-transparent, rgba(59, 130, 246, 0.1)),
    var(--league-accent-transparent, rgba(245, 158, 11, 0.05)));
    border-left: 3px solid var(--league-primary, #3b82f6);
    padding: 1.5rem;
    border-radius: 8px;
}

.this-week-action .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.9));
    margin-bottom: 1rem;
}

.this-week-action .section-title i {
    color: var(--league-accent, #f59e0b);
}

/* Tag Movement */
.tag-movement {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.9));
}

.movement-arrow {
    font-size: 2rem;
    color: var(--league-primary, #3b82f6);
}

.movement-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-change {
    font-size: 1.2rem;
    color: var(--theme-text-secondary, rgba(0, 0, 0, 0.6));
    font-weight: 600;
}

/* Week Stats */
.week-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface-2, rgba(0, 0, 0, 0.02));
    border-radius: 8px;
}

.week-stats .stat-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.8));
}

.week-stats .stat-item i {
    color: var(--league-primary, #3b82f6);
}

/* Week Event Details */
.week-event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-2, rgba(0, 0, 0, 0.02));
    border-radius: 8px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.8));
}

.event-detail-item i {
    color: var(--league-primary, #3b82f6);
    min-width: 20px;
}

.event-theme {
    font-style: italic;
    font-weight: 500;
}

.event-course {
    font-weight: 500;
}

/* This Week Flippy Narrative Overrides */
.this-week-action .flippy-says-container {
    font-weight: 400; /* Remove bold from narrative text */
}

.this-week-action .flippy-says-container strong,
.this-week-action .flippy-says-container b {
    font-weight: 600; /* Lighter bold for emphasis */
}

/* View Full Details */
.view-full-details {
    text-align: center;
    margin: 2rem 0;
}

.view-full-details .btn-theme-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tag Journey Section */
.tag-journey-section {
    background: var(--surface-1, #fff);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.tag-journey-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.9));
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.tag-journey-section .section-title i {
    color: var(--league-primary, #3b82f6);
}

/* Timeline */
.tag-timeline {
    position: relative;
    padding-left: 2rem;
}

.tag-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
    var(--league-primary, #3b82f6) 0%,
    var(--league-accent, #f59e0b) 100%);
}

/* Timeline Entry */
.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-1, #fff);
    border: 2px solid var(--league-primary, #3b82f6);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker i {
    font-size: 0.5rem;
    color: var(--league-primary, #3b82f6);
}

.timeline-entry.movement-up .timeline-marker {
    border-color: var(--theme-success, #10b981);
}

.timeline-entry.movement-up .timeline-marker i {
    color: var(--theme-success, #10b981);
}

.timeline-entry.movement-down .timeline-marker {
    border-color: var(--theme-danger, #ef4444);
}

.timeline-entry.movement-down .timeline-marker i {
    color: var(--theme-danger, #ef4444);
}

.timeline-entry.movement-defended .timeline-marker {
    border-color: var(--theme-warning, #f59e0b);
}

.timeline-entry.movement-defended .timeline-marker i {
    color: var(--theme-warning, #f59e0b);
}

/* Timeline Content */
.timeline-content {
    background: var(--surface-2, rgba(0, 0, 0, 0.02));
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-content {
    background: var(--surface-3, rgba(0, 0, 0, 0.03));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

/* Timeline Event Image */
.timeline-event-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
}

.timeline-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline Header */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.timeline-week {
    font-weight: 700;
    color: var(--league-primary, #3b82f6);
    font-size: 1rem;
}

.timeline-event-name {
    font-style: italic;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.8));
    font-size: 0.95rem;
    font-weight: 500;
}

.timeline-course-name {
    color: var(--league-primary, #3b82f6);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.timeline-course-name i {
    font-size: 0.8rem;
}

.timeline-date {
    color: var(--theme-text-secondary, rgba(0, 0, 0, 0.6));
    font-size: 0.9rem;
    margin-left: auto;
}

/* Timeline Movement */
.timeline-movement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.timeline-movement .movement-arrow {
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-entry.movement-up .movement-arrow {
    color: var(--theme-success, #10b981);
}

.timeline-entry.movement-down .movement-arrow {
    color: var(--theme-danger, #ef4444);
}

.timeline-entry.movement-defended .movement-arrow {
    color: var(--theme-warning, #f59e0b);
}

.movement-numbers {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.9));
}

.timeline-movement .movement-change {
    font-size: 0.9rem;
    color: var(--theme-text-secondary, rgba(0, 0, 0, 0.6));
}

/* Timeline Stats */
.timeline-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--theme-text-secondary, rgba(0, 0, 0, 0.7));
    flex-wrap: wrap;
}

.timeline-stats span {
    font-weight: 500;
}

/* Timeline Narrative - now using Flippy partial */
.timeline-narrative {
    margin-top: 0.5rem;
}

.timeline-narrative .flippy-says-simple {
    margin-bottom: 0;
    background: transparent;
}

.timeline-narrative .flippy-says-simple__content {
    background: transparent;
}

.timeline-narrative .flippy-says-simple__message {
    color: var(--theme-text-primary, rgba(0, 0, 0, 0.85));
}

.timeline-narrative .flippy-says-simple__label {
    color: var(--theme-text-secondary, rgba(0, 0, 0, 0.7));
    font-weight: 600;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    .bag-tag-hero-section,
    .tag-journey-section {
        background: var(--surface-1, #1e293b);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .this-week-action {
        background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15),
        rgba(245, 158, 11, 0.08));
    }

    .week-stats {
        background: var(--surface-2, rgba(255, 255, 255, 0.03));
    }

    .week-event-details {
        background: var(--surface-2, rgba(255, 255, 255, 0.03));
    }

    .timeline-content {
        background: var(--surface-2, rgba(255, 255, 255, 0.03));
    }

    .timeline-entry:hover .timeline-content {
        background: var(--surface-3, rgba(255, 255, 255, 0.05));
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .timeline-marker {
        background: var(--surface-1, #1e293b);
    }

    .timeline-narrative .flippy-says-simple__message {
        color: var(--theme-text-primary, rgba(255, 255, 255, 0.9));
    }

    .timeline-narrative .flippy-says-simple__label {
        color: var(--theme-text-secondary, rgba(255, 255, 255, 0.7));
    }

    .timeline-event-name {
        color: var(--theme-text-primary, rgba(255, 255, 255, 0.9));
    }

    .timeline-course-name {
        color: var(--league-primary, #60a5fa);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bag-tag-hero-image img {
        max-width: 100%;
    }

    .tag-movement {
        font-size: 1.4rem;
    }

    .movement-arrow {
        font-size: 2rem;
    }

    .week-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-entry {
        padding-left: 1.5rem;
    }

    .tag-timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 24px;
        height: 24px;
    }

    .bag-tag-tab-thumbnail {
        width: 24px;
        height: 24px;
    }

    .timeline-event-image {
        height: 80px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-date {
        margin-left: 0;
    }
}

/* Dark mode overrides migrated from darktheme.css */
[data-bs-theme="dark"] .bag-tag-hero-section,
[data-bs-theme="dark"] .tag-journey-section {
    background: var(--surface-1, #1e293b);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .this-week-action {
    background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.15),
    rgba(245, 158, 11, 0.08));
}

[data-bs-theme="dark"] .week-stats {
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

[data-bs-theme="dark"] .week-event-details {
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

[data-bs-theme="dark"] .timeline-content {
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

[data-bs-theme="dark"] .timeline-entry:hover .timeline-content {
    background: var(--surface-3, rgba(255, 255, 255, 0.05));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .timeline-marker {
    background: var(--surface-1, #1e293b);
}

[data-bs-theme="dark"] .timeline-narrative .flippy-says-simple__message {
    color: var(--theme-text-primary, rgba(255, 255, 255, 0.9));
}

[data-bs-theme="dark"] .timeline-narrative .flippy-says-simple__label {
    color: var(--theme-text-secondary, rgba(255, 255, 255, 0.7));
}

[data-bs-theme="dark"] .timeline-event-name {
    color: var(--theme-text-primary, rgba(255, 255, 255, 0.9));
}

[data-bs-theme="dark"] .timeline-course-name {
    color: var(--league-primary, #60a5fa);
}

