/* ==========================================================================
   Bag Tag Tabs - Styling for tabs in event result views
   ========================================================================== */

/* Tab Wrapper Container */
.bag-tag-tabs-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Tab Navigation */
.bag-tag-tabs {
    display: flex !important;
    justify-content: stretch !important;
    align-items: stretch;
    border: none !important;
    gap: 0.5rem;
    margin-bottom: 0 !important;
    width: 100%;
}

.bag-tag-tabs .nav-item {
    margin: 0;
    flex: 1;
    display: flex;
}

/* Tab Buttons */
.bag-tag-tabs .nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
    min-height: 60px;
}

/* Tab Hover State */
.bag-tag-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Active Tab */
.bag-tag-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.4));
    color: white !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Remove Bootstrap default arrow */
.bag-tag-tabs .nav-link.active::after {
    display: none;
}

/* Tab Icons */
.bag-tag-tabs .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Tab Images */
.bag-tag-tabs .tag-thumbnail {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Movement Badge */
.tag-movement-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
    margin-left: 0.5rem;
    border-radius: 6px;
}

.tag-movement-badge .old-number {
    color: rgba(255, 255, 255, 0.7);
}

.tag-movement-badge .new-number {
    color: white;
    font-weight: 600;
}

.tag-movement-badge .direction {
    font-weight: bold;
    margin: 0 2px;
}

.tag-movement-badge .direction-up {
    color: #10b981;
}

.tag-movement-badge .direction-down {
    color: #ef4444;
}

.tag-movement-badge .direction-same {
    color: #fbbf24;
}

/* Bag Tag Showcase Container */
.bag-tag-showcase-container {
    padding: 1.5rem 0;
}

/* Bag Tag with Flippy Layout - 2:1 ratio (narrative:image) */
.bag-tag-flippy-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.bag-tag-flippy-layout .flippy-narrative-column {
    flex: 2;
}

.bag-tag-flippy-layout .bag-tag-image-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bag Tag Image Wrapper */
.flippy-bag-tag-showcase {
    width: 100%;
}

.flippy-bag-tag-showcase .tag-image-wrapper {
    width: 100%;
    max-width: 250px;
    position: relative;
    margin: 0 auto 1rem;
}

.flippy-bag-tag-showcase .flippy-bag-tag-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.flippy-bag-tag-showcase .tag-number {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.flippy-bag-tag-showcase .tag-details h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    text-align: center;
}

.flippy-bag-tag-showcase .tag-movement {
    display: inline-block;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    text-align: center;
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bag-tag-flippy-layout {
        flex-direction: column;
    }
    
    .bag-tag-flippy-layout .flippy-narrative-column,
    .bag-tag-flippy-layout .bag-tag-image-column {
        flex: 1;
        width: 100%;
    }
}

/* Dark mode adjustments (already dark by default) */
@media (prefers-color-scheme: light) {
    .bag-tag-tabs-wrapper {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .bag-tag-tabs .nav-link {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: rgba(0, 0, 0, 0.7);
    }
    
    .bag-tag-tabs .nav-link:hover {
        background: rgba(0, 0, 0, 0.1);
        color: black;
    }
    
    .bag-tag-tabs .nav-link.active {
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        color: white !important;
        border-color: #3b82f6 !important;
    }
    
    .tag-movement-badge {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.2);
    }
    
    .flippy-bag-tag-showcase .tag-details h4 {
        color: #333;
    }
}