/* ========================================
   BASE TYPOGRAPHY
   ======================================== */
body { font-family: 'Open Sans', sans-serif; color: #2F5A7B; }
h1, h2, h3, h4 { font-family: 'Open Sans', sans-serif; line-height: 1.5 !important; }
h1 { line-height: 1.45 !important; }
h2 { line-height: 1.45 !important; }

/* ========================================
   CARD COMPONENT
   ======================================== */
.card {
    background: #FFF8EA;
    border: 2px solid #BBE0F3;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(47, 90, 123, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(47, 90, 123, 0.1);
    transform: translateY(-2px);
}

/* Card border color variants */
.card--yellow { border-color: #FFD86A; }
.card--blue { border-color: #BBE0F3; }
.card--orange { border-color: #FFB680; }
.card--deep-blue { border-color: #4A95C7; }

/* ========================================
   BUTTON COMPONENTS
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, #F08A52, #FFB680);
    border-radius: 14px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(240, 138, 82, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 5px 18px rgba(240, 138, 82, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #2F5A7B;
    border-radius: 14px;
    color: #2F5A7B;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background: #2F5A7B;
    color: white;
}

.btn-soft {
    color: #F08A52;
    font-weight: 600;
    transition: color 0.2s ease;
}
.btn-soft:hover {
    color: #2F5A7B;
}

.shopee-text-link {
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-color: #EE4D2D;
}
.shopee-text-link:hover {
    opacity: 0.8;
}

.shopee-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(238, 77, 45, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}
.shopee-btn:hover {
    box-shadow: 0 5px 18px rgba(238, 77, 45, 0.35);
    transform: translateY(-1px);
}

/* ========================================
   BADGE & TAG
   ======================================== */
.badge {
    background: #FFEFB3;
    border: 1.5px solid #FFD86A;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2F5A7B;
}

/* ========================================
   ICON WRAP COMPONENT
   ======================================== */
.icon-wrap {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icon-wrap--lg {
    width: 56px; height: 56px;
    border-radius: 16px;
}

/* Icon wrap color variants */
.icon-wrap--yellow { background: #FFEFB3; }
.icon-wrap--blue { background: #BBE0F3; }
.icon-wrap--orange { background: rgba(255, 182, 128, 0.4); }

/* ========================================
   CATEGORY ICON COMPONENT
   - Used on listing pages (danh-sach-theo-lop, huong-dan-chon-do, etc.)
   ======================================== */
.category-icon {
    width: 4rem; height: 4rem;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.category-icon--yellow { background: rgba(255, 216, 106, 0.25); }
.category-icon--blue { background: rgba(187, 224, 243, 0.25); }
.category-icon--orange { background: rgba(255, 182, 128, 0.25); }
.category-icon--deep-blue { background: rgba(74, 149, 199, 0.25); }
.category-icon--cream { background: rgba(255, 239, 179, 0.25); }

/* ========================================
   NUMBER CIRCLE COMPONENT
   - Used on goi-y-noi-bat.html for featured counts
   ======================================== */
.number-circle {
    flex-shrink: 0;
    width: 3.5rem; height: 3.5rem;
    border-radius: 9999px;
    background: #FFF8EA;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #F08A52;
    box-shadow: 0 4px 12px rgba(240, 138, 82, 0.3);
}

/* ========================================
   SHOPEE SUGGESTION BOX COMPONENT
   ======================================== */
.shopee-suggestion {
    background: linear-gradient(135deg, #FFF5EE, #FFF8EA);
}

/* ========================================
   SECTION COMPONENTS
   ======================================== */
.bg-section-a { background: #BBE0F3; }
.bg-section-b { background: #FFF8EA; }

.section-gradient {
    background: linear-gradient(180deg, #FFF8EA 0%, #BBE0F3 100%);
}

.section-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD86A, #BBE0F3, transparent);
    border-radius: 2px;
}

/* ========================================
   TIP BOX
   ======================================== */
.tip-box {
    background: #FFEFB3;
    border: 2px solid #FFD86A;
    border-radius: 16px;
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2F5A7B;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    z-index: 100;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid #4A95C7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   COLOR HELPERS
   ======================================== */
.pros { color: #4A95C7; }
.cons { color: #F08A52; }
.text-orange-warm { color: #F08A52; }
