/* ============================================================
   tabs.css — Sitemap tab component styles
   Clean, modern design matching the Ven868 site theme.
   ============================================================ */

/* ---- Outer centering wrapper ---- */
.container2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
}

/* ---- Tab card ---- */
.tab-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 960px;
}

/* ---- Title bar ---- */
.tab-title {
    padding: 20px 28px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

/* ---- Tab header row ---- */
.tab-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* ---- Individual tab button ---- */
.tab-btn {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.25s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
    transition: width 0.25s ease;
}

.tab-btn:hover {
    color: #334155;
    background: rgba(37, 99, 235, 0.04);
}

.tab-btn.active {
    color: #1e293b;
    background: #fff;
}

.tab-btn.active::after {
    width: 60%;
}

/* ---- Tab content area ---- */
.tab-content {
    padding: 28px 32px;
    min-height: 300px;
    background: #fff;
}

/* ---- Content panels ---- */
.content-panel {
    display: none;
    animation: tabFadeIn 0.35s ease-out;
}

.content-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Optional headings inside panels ---- */
.content-panel h2 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #1e293b;
    padding-left: 14px;
    border-left: 4px solid #2563eb;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .tab-container {
        border-radius: 12px;
    }

    .tab-title {
        font-size: 18px;
        padding: 16px 20px;
    }

    .tab-header {
        flex-direction: column;
    }

    .tab-btn {
        padding: 14px 20px;
        text-align: left;
    }

    .tab-btn::after {
        left: 0;
        transform: none;
        height: 3px;
        width: 0;
        border-radius: 0 3px 3px 0;
    }

    .tab-btn.active::after {
        width: 4px;
        height: 100%;
        top: 0;
    }

    .tab-content {
        padding: 20px 16px;
    }
}