/**
 * =========================================
 * SECTION: ORIGIN STORY - CÂU CHUYỆN KHỞI NGUỒN
 * =========================================
 * File: assets/css/culture-origin-story.css
 * Dùng cho: Section 2 của page "Văn hóa – Giá trị Tabcom"
 * Scope: .tabcom-origin-story
 * =========================================
 */

/* --- 1. CẤU HÌNH MÀU SẮC & BIẾN --- */
.tabcom-origin-story {
    --os-primary: #0038FF;
    --os-primary-gradient: linear-gradient(135deg, #0038FF 0%, #001BE6 100%);
    --os-secondary: #1E293B;
    --os-text-main: #0F172A;
    --os-text-sub: #475569;
    --os-bg-body: #F8FAFC;
    --os-card-bg: #1e1b4b;
}

.tabcom-origin-story {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--os-bg-body);
    color: var(--os-text-main);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow-x: hidden;
}

.tabcom-origin-story * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabcom-origin-story .container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    align-items: center;
}

/* --- 2. CỘT NỘI DUNG --- */
.tabcom-origin-story .col-content {
    flex: 1;
    min-width: 320px;
    animation: ossFadeUp 1s ease-out;
}

.tabcom-origin-story .label {
    color: #0038FF;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tabcom-origin-story h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--os-text-main);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tabcom-origin-story .brand-name {
    background: var(--os-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tabcom-origin-story p {
    color: var(--os-text-sub);
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.tabcom-origin-story strong {
    color: var(--os-primary);
    font-weight: 700;
}

/* --- BOX Ý NGHĨA --- */
.tabcom-origin-story .meaning-box {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tabcom-origin-story .meaning-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.2);
}

.tabcom-origin-story .meaning-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--os-primary-gradient);
}

.tabcom-origin-story .box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1E293B;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
}

.tabcom-origin-story .box-title i {
    color: #4F46E5;
    font-size: 1.2rem;
}

/* Style mới cho danh sách ý nghĩa */
.tabcom-origin-story .meaning-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tabcom-origin-story .meaning-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tabcom-origin-story .key-badge {
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    border: 1px solid #DBEAFE;
}

.tabcom-origin-story .key-desc {
    font-size: 0.95rem;
    color: var(--os-text-sub);
    font-weight: 500;
    line-height: 1.5;
}

.tabcom-origin-story .quote-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #CBD5E1;
    font-style: italic;
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.5;
}

/* Legacy support - meaning-grid */
.tabcom-origin-story .meaning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

.tabcom-origin-story .meaning-item {
    font-size: 0.95rem;
    color: var(--os-text-sub);
    font-weight: 500;
}

.tabcom-origin-story .meaning-item span {
    color: #2563EB;
    font-weight: 800;
    display: inline-block;
    width: 20px;
}

/* --- 3. CỘT HÌNH ẢNH --- */
.tabcom-origin-story .col-image {
    flex: 1;
    min-width: 320px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.tabcom-origin-story .bg-circle {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(20px);
    animation: ossPulse 8s infinite alternate;
}

.tabcom-origin-story .main-img-wrapper {
    position: relative;
    z-index: 1;
    width: 85%;
    margin-left: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.tabcom-origin-story .main-img-wrapper img {
    width: 100%;
    border-radius: 24px;
    display: block;
}

.tabcom-origin-story .main-img-wrapper:hover {
    transform: scale(1.02);
}

/* --- CARD "NBH LOAY HOAY" --- */
.tabcom-origin-story .float-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background-color: var(--os-card-bg);
    color: white;
    padding: 25px;
    border-radius: 20px;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(30, 27, 75, 0.5);
    animation: ossFloat 6s ease-in-out infinite;
}

.tabcom-origin-story .card-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.tabcom-origin-story .card-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.tabcom-origin-story .card-label {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- TAB KEY CARD (Keyboard Style) --- */
.tabcom-origin-story .tab-key-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 180px;
    height: auto;
    padding: 20px;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.tabcom-origin-story .tab-key {
    width: 100%;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 0 #ced4da, 0 6px 10px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.tabcom-origin-story .tab-key:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #ced4da, 0 3px 6px rgba(0,0,0,0.1);
}

.tabcom-origin-story .key-text {
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.5px;
}

.tabcom-origin-story .key-icon {
    font-size: 0.75rem;
    color: #6c757d;
}

.tabcom-origin-story .tab-meaning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.tabcom-origin-story .tab-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tabcom-origin-story .tab-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563EB;
    line-height: 1.3;
}

/* --- TRUST BADGE CARD --- */
.tabcom-origin-story .trust-badge-card {
    background-color: var(--os-card-bg);
    justify-content: flex-start;
    padding: 25px;
    width: 220px;
    height: auto;
    min-height: 200px;
}

.tabcom-origin-story .trust-badge-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.tabcom-origin-story .trust-badge-title i {
    color: #60a5fa;
    font-size: 1rem;
}

.tabcom-origin-story .trust-badge-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tabcom-origin-story .trust-badge-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.tabcom-origin-story .trust-badge-list li i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes ossFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ossFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes ossPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .tabcom-origin-story {
        padding: 60px 20px;
    }

    .tabcom-origin-story .container {
        flex-direction: column;
        gap: 50px;
    }

    .tabcom-origin-story .col-image {
        width: 100%;
        height: 400px;
    }

    .tabcom-origin-story .float-card {
        left: 10px;
        bottom: 0;
        width: 200px;
        height: 200px;
    }

    .tabcom-origin-story .bg-circle {
        right: 50%;
        transform: translateX(50%);
    }

    .tabcom-origin-story h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .tabcom-origin-story .meaning-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tabcom-origin-story h1 {
        font-size: 1.8rem;
    }

    .tabcom-origin-story .col-content {
        min-width: 100%;
    }
}
