/**
 * =========================================
 * PAGE: DỊCH VỤ VẬN HÀNH SHOPEE - TABCOM CARE
 * SECTION: CASE STUDY TIÊU BIỂU
 * =========================================
 * File: assets/css/shopee-casestudy.css
 * Scope: .tabcom-casestudy
 * =========================================
 */

.tabcom-casestudy {
    --cs-primary: #f9f506;
    --cs-cyan: #06b6d4;
    --cs-blue: #0e7490;
    --cs-bg: #f8f8f5;
    --cs-card-bg: #ffffff;
    --cs-text-dark: #181811;
    --cs-text-muted: #5c5b4f;
}

.tabcom-casestudy {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cs-bg);
    padding: 100px 20px;
}

.tabcom-casestudy * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabcom-casestudy .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.tabcom-casestudy .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tabcom-casestudy .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0038FF;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    margin-bottom: 16px;
}

.tabcom-casestudy .section-tag .material-symbols-outlined {
    color: #fff;
}

.tabcom-casestudy .section-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.tabcom-casestudy .section-desc {
    font-size: 1.1rem;
    color: var(--cs-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats Grid */
.tabcom-casestudy .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.tabcom-casestudy .stat-card {
    background: var(--cs-card-bg);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tabcom-casestudy .stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tabcom-casestudy .stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tabcom-casestudy .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabcom-casestudy .stat-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cs-cyan);
}

.tabcom-casestudy .stat-icon.yellow {
    background: rgba(249, 245, 6, 0.2);
    color: #a16207;
}

.tabcom-casestudy .stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.tabcom-casestudy .stat-icon .material-symbols-outlined {
    font-size: 22px;
}

.tabcom-casestudy .stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cs-text-muted);
}

.tabcom-casestudy .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 12px;
}

.tabcom-casestudy .stat-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.tabcom-casestudy .stat-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.tabcom-casestudy .stat-bar-fill.cyan { background: var(--cs-cyan); }
.tabcom-casestudy .stat-bar-fill.yellow { background: var(--cs-primary); }
.tabcom-casestudy .stat-bar-fill.green { background: #22c55e; }

/* Case Study Header */
.tabcom-casestudy .case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 0 8px;
}

.tabcom-casestudy .case-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tabcom-casestudy .case-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cs-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tabcom-casestudy .case-tag .material-symbols-outlined {
    font-size: 18px;
}

.tabcom-casestudy .case-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cs-text-dark);
}

.tabcom-casestudy .case-header-desc {
    font-size: 0.95rem;
    color: var(--cs-text-muted);
}

/* Navigation */
.tabcom-casestudy .case-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tabcom-casestudy .case-counter {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cs-text-muted);
}

.tabcom-casestudy .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: var(--cs-card-bg);
    color: var(--cs-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabcom-casestudy .nav-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tabcom-casestudy .nav-btn.primary {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
    color: var(--cs-text-dark);
}

.tabcom-casestudy .nav-btn.primary:hover {
    background: #e8e405;
}

/* Case Card */
.tabcom-casestudy .case-card {
    background: var(--cs-card-bg);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabcom-casestudy .case-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Case Image */
.tabcom-casestudy .case-image {
    position: relative;
    background: #000;
    overflow: hidden;
}

.tabcom-casestudy .case-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.tabcom-casestudy .case-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

/* Image Badges */
.tabcom-casestudy .image-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tabcom-casestudy .image-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabcom-casestudy .image-badge.shopee {
    background: #d0011b;
    color: #fff;
}

.tabcom-casestudy .image-badge.official {
    background: var(--cs-cyan);
    color: #fff;
}

/* Growth Badge */
.tabcom-casestudy .growth-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 32px;
    border-radius: 20px;
    z-index: 10;
}

.tabcom-casestudy .growth-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.tabcom-casestudy .growth-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--cs-primary);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tabcom-casestudy .growth-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-top: 4px;
}

/* Image Info */
.tabcom-casestudy .image-info {
    position: absolute;
    bottom: 60px;
    left: 24px;
    right: 24px;
    z-index: 10;
}

.tabcom-casestudy .image-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.tabcom-casestudy .image-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

/* Image Dots */
.tabcom-casestudy .image-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tabcom-casestudy .image-dot {
    width: 8px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabcom-casestudy .image-dot.active {
    width: 32px;
    background: var(--cs-cyan);
}

/* Case Content */
.tabcom-casestudy .case-content {
    padding: 40px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.tabcom-casestudy .content-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tabcom-casestudy .content-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--cs-card-bg);
    border: 1px solid #e5e7eb;
    color: var(--cs-text-muted);
}

.tabcom-casestudy .content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 16px;
}

.tabcom-casestudy .content-block {
    margin-bottom: 16px;
}

.tabcom-casestudy .content-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 4px;
}

.tabcom-casestudy .content-text {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    line-height: 1.6;
}

/* Data Table */
.tabcom-casestudy .data-table-wrapper {
    flex: 1;
    background: var(--cs-card-bg);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 8px;
}

.tabcom-casestudy .data-table {
    width: 100%;
    font-size: 0.85rem;
    text-align: left;
    border-collapse: collapse;
}

.tabcom-casestudy .data-table thead {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.tabcom-casestudy .data-table th {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--cs-text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.tabcom-casestudy .data-table th.highlight {
    background: rgba(6, 182, 212, 0.08);
    color: var(--cs-blue);
}

.tabcom-casestudy .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.tabcom-casestudy .data-table tbody tr:last-child td {
    border-bottom: none;
}

.tabcom-casestudy .data-table tbody tr:hover {
    background: #fafafa;
}

.tabcom-casestudy .metric-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--cs-text-dark);
}

.tabcom-casestudy .metric-cell .material-symbols-outlined {
    font-size: 16px;
}

.tabcom-casestudy .data-table td.center {
    text-align: center;
}

.tabcom-casestudy .data-table td.muted {
    color: var(--cs-text-muted);
    background: #fafafa;
}

.tabcom-casestudy .data-table td.highlight {
    background: rgba(6, 182, 212, 0.05);
    font-weight: 700;
    color: var(--cs-blue);
}

.tabcom-casestudy .data-table td.success {
    color: #16a34a;
    font-weight: 700;
}

/* Team Section */
.tabcom-casestudy .case-team {
    padding: 32px 40px;
    background: var(--cs-card-bg);
    border-top: 1px dashed #e5e7eb;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.tabcom-casestudy .team-info {
    width: 25%;
    flex-shrink: 0;
}

.tabcom-casestudy .team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tabcom-casestudy .team-icon {
    width: 32px;
    height: 32px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-cyan);
}

.tabcom-casestudy .team-icon .material-symbols-outlined {
    font-size: 18px;
}

.tabcom-casestudy .team-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cs-text-dark);
}

.tabcom-casestudy .team-desc {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    line-height: 1.5;
}

/* Team Members */
.tabcom-casestudy .team-members {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tabcom-casestudy .team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tabcom-casestudy .team-member:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tabcom-casestudy .member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tabcom-casestudy .member-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--cs-cyan);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    border: 2px solid #fff;
}

.tabcom-casestudy .member-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cs-text-dark);
}

.tabcom-casestudy .member-role {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
}

/* Footer Note */
.tabcom-casestudy .section-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.tabcom-casestudy .footer-note {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
}

/* Gallery Tabs */
.tabcom-casestudy .gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tabcom-casestudy .gallery-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #0038FF;
    background: transparent;
    color: #0038FF;
}

.tabcom-casestudy .gallery-tab:hover {
    background: rgba(0, 56, 255, 0.05);
}

.tabcom-casestudy .gallery-tab.active {
    background: linear-gradient(180deg, #001BE6 50%, #0FDEC9 100%);
    border-color: transparent;
    color: #fff;
}

.tabcom-casestudy .gallery-tab .material-symbols-outlined {
    font-size: 20px;
}

/* Gallery Content */
.tabcom-casestudy .gallery-content {
    display: none;
}

.tabcom-casestudy .gallery-content.active {
    display: block;
}

/* Gallery Slider Container */
.tabcom-casestudy .gallery-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    padding: 24px 0;
}

.tabcom-casestudy .gallery-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabcom-casestudy .gallery-slider::-webkit-scrollbar {
    display: none;
}

/* Gallery Item */
.tabcom-casestudy .gallery-item {
    position: relative;
    flex: 0 0 200px;
    height: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabcom-casestudy .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tabcom-casestudy .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.tabcom-casestudy .gallery-item:hover img {
    transform: scale(1.05);
}

/* Featured Items */
.tabcom-casestudy .gallery-item.featured {
    flex: 0 0 220px;
    height: auto;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #001BE6 0%, #0FDEC9 100%) border-box;
    box-shadow: 0 8px 24px rgba(0, 56, 255, 0.2);
}

.tabcom-casestudy .gallery-item.featured:hover {
    box-shadow: 0 16px 40px rgba(0, 56, 255, 0.3);
}

.tabcom-casestudy .featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(180deg, #001BE6 50%, #0FDEC9 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 56, 255, 0.3);
}

.tabcom-casestudy .featured-badge .material-symbols-outlined {
    font-size: 12px;
}

/* Slider Navigation */
.tabcom-casestudy .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tabcom-casestudy .slider-nav:hover {
    background: #0038FF;
    color: #fff;
    border-color: #0038FF;
}

.tabcom-casestudy .slider-nav.prev {
    left: 8px;
}

.tabcom-casestudy .slider-nav.next {
    right: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tabcom-casestudy .gallery-item {
        flex: 0 0 180px;
        height: auto;
    }

    .tabcom-casestudy .gallery-item.featured {
        flex: 0 0 200px;
        height: auto;
    }

    .tabcom-casestudy .case-main {
        grid-template-columns: 1fr;
    }

    .tabcom-casestudy .case-image {
        min-height: 400px;
    }

    .tabcom-casestudy .case-team {
        flex-direction: column;
        gap: 24px;
    }

    .tabcom-casestudy .team-info {
        width: 100%;
    }

    .tabcom-casestudy .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabcom-casestudy {
        padding: 60px 20px;
    }

    .tabcom-casestudy .section-title {
        font-size: 1.75rem;
    }

    .tabcom-casestudy .gallery-tabs {
        flex-direction: column;
        gap: 12px;
    }

    .tabcom-casestudy .gallery-tab {
        justify-content: center;
    }

    .tabcom-casestudy .gallery-slider {
        padding: 8px 50px;
    }

    .tabcom-casestudy .gallery-item {
        flex: 0 0 160px;
        height: auto;
    }

    .tabcom-casestudy .gallery-item.featured {
        flex: 0 0 180px;
        height: auto;
    }

    .tabcom-casestudy .slider-nav {
        width: 36px;
        height: 36px;
    }

    .tabcom-casestudy .stats-grid {
        grid-template-columns: 1fr;
    }

    .tabcom-casestudy .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tabcom-casestudy .case-content {
        padding: 24px;
    }

    .tabcom-casestudy .case-team {
        padding: 24px;
    }

    .tabcom-casestudy .team-members {
        grid-template-columns: 1fr;
    }

    .tabcom-casestudy .growth-value {
        font-size: 2.5rem;
    }
}
