/* ==========================================================================
   POSONE LANDING PAGE STYLES - PIXEL PERFECT TO INTRODUCTION.POSONE.VN
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   PREFLIGHT THU GỌN — CHỈ ÁP TRONG .landing-root
   --------------------------------------------------------------------------
   Preflight thật đã bị tắt ở wwwroot/index.html (corePlugins.preflight = false)
   vì nó là reset toàn cục: nạp Tailwind ở tầng shell của SPA nghĩa là mọi route
   đều dính, và nó đè các rule cấp thẻ của Bootstrap/AdminLTE (img, h1-h6, p, a,
   ul, button, *{border}). Landing vẫn cần các reset này nên khai báo lại ở đây.

   Mọi selector bọc trong :where() để specificity = 0, nhờ vậy utility class của
   Tailwind (.border-b, .h-full, .text-2xl...) luôn thắng, bất kể file nào nạp
   trước — landing.css còn được <link> lần nữa từ trong Landing.razor nên nằm sau
   thẻ <style> mà Play CDN sinh ra ở <head>.
   ========================================================================== */

:where(.landing-root, .landing-root *) {
    box-sizing: border-box;
    /* utility `border`/`border-b` chỉ set border-width; style và color lấy từ đây */
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

.landing-root *::before,
.landing-root *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

:where(.landing-root h1, .landing-root h2, .landing-root h3,
       .landing-root h4, .landing-root h5, .landing-root h6) {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

:where(.landing-root p, .landing-root blockquote, .landing-root figure,
       .landing-root pre, .landing-root dl, .landing-root dd, .landing-root hr) {
    margin: 0;
}

:where(.landing-root ul, .landing-root ol) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:where(.landing-root a) {
    color: inherit;
    text-decoration: inherit;
}

:where(.landing-root img, .landing-root svg, .landing-root video,
       .landing-root canvas, .landing-root iframe, .landing-root object) {
    display: block;
    vertical-align: middle;
}

:where(.landing-root img, .landing-root video) {
    max-width: 100%;
    height: auto;
}

:where(.landing-root button, .landing-root input, .landing-root optgroup,
       .landing-root select, .landing-root textarea) {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

:where(.landing-root button, .landing-root [type="button"],
       .landing-root [type="submit"], .landing-root [type="reset"]) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

:where(.landing-root hr) {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

:where(.landing-root table) {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

.landing-root ::placeholder {
    opacity: 1;
    color: #9ca3af;
}

.landing-root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    opacity: 0;
    animation: landingFadeIn 0.25s ease-out 0.05s forwards;
}

@keyframes landingFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.landing-root *,
.landing-root *::before,
.landing-root *::after {
    box-sizing: border-box;
}

/* Critical Image & Media Preflight to eliminate ballooning */
.landing-root img,
.landing-root svg,
.landing-root video {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Header & Logo Constraints (Instant render) */
.landing-root header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
}

.landing-root header .w-10,
.landing-root header div[class*="w-10"] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

.landing-root header img {
    max-height: 40px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Container max-width enhancement to match Next.js widescreen layout */
.landing-root .max-w-7xl {
    max-width: 1360px !important;
}

.landing-root .max-w-6xl {
    max-width: 1280px !important;
}

/* Reset Bootstrap overrides */
.landing-root h1,
.landing-root h2,
.landing-root h3,
.landing-root h4,
.landing-root h5,
.landing-root h6 {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
}

.landing-root p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.625;
}

.landing-root ul,
.landing-root ol {
    margin-top: 0;
    margin-bottom: 0;
}

.landing-root a {
    color: inherit;
    text-decoration: none;
}

.landing-root a:hover {
    color: inherit;
    text-decoration: none;
}

.landing-root button,
.landing-root input,
.landing-root select,
.landing-root textarea {
    font-family: inherit;
}

.landing-root ul {
    list-style: none;
    padding-left: 0;
}

/* Background Grid Pattern - 32px standard */
.bg-grid-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Blob & Floating Keyframe Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(34, 197, 94, 0.7);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.4s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out forwards;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: all 0.75s ease;
}

.shine-effect:hover::after {
    left: 130%;
}

/* Glassmorphism Classes */
.glass-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom Scrollbar for Smooth Feel */
.landing-root ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.landing-root ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.landing-root ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.landing-root ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Footer Typography & Spacing Fix */
.landing-root footer h4 {
    margin-bottom: 1.5rem !important;
}

.landing-root footer ul.space-y-4 > li {
    margin-bottom: 1rem !important;
}

.landing-root footer ul.space-y-4 > li:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   STYLE 2 — AUTO-SCROLL MARQUEE (KHÁCH HÀNG TIÊU BIỂU KAS & MKAS)
   ========================================================================== */

:root {
    --s2-bg: #ffffff;
    --s2-track-bg: #f4f5f9;
    --s2-heading: #101223;
    --s2-sub: #71758e;
    --s2-kas: #2f5bff;
    --s2-mkas: #ff7a45;
    --s2-badge-bg: #ffffff;
    --s2-badge-border: #e7e9f0;
    --s2-badge-shadow: 0 6px 16px rgba(20, 25, 60, 0.08);
}

.s2-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Marquee row ---- */
.s2-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.s2-row + .s2-row {
    margin-top: 24px;
}

.s2-row-tag {
    flex: 0 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 140px;
    padding-right: 12px;
}

.s2-row-tag-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--s2-heading);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.s2-row-tag-count {
    font-size: 12px;
    color: var(--s2-sub);
    white-space: nowrap;
}

.s2-row--kas .s2-row-tag-name::before,
.s2-row--mkas .s2-row-tag-name::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.s2-row--kas .s2-row-tag-name::before { background: var(--s2-kas); }
.s2-row--mkas .s2-row-tag-name::before { background: var(--s2-mkas); }

.s2-track-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--s2-track-bg);
    border-radius: 18px;
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.s2-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: s2-scroll-left 32s linear infinite;
}

.s2-row--mkas .s2-track {
    animation-name: s2-scroll-right;
    animation-duration: 36s;
}

.s2-track-viewport:hover .s2-track {
    animation-play-state: paused;
}

.s2-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s2-badge-bg);
    border: 1px solid var(--s2-badge-border);
    border-radius: 14px;
    box-shadow: var(--s2-badge-shadow);
    padding: 16px 26px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.s2-logo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(20, 25, 60, 0.12);
    border-color: #cbd5e1;
}

.s2-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.s2-logo:hover img {
    transform: scale(1.06);
}

@keyframes s2-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes s2-scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 640px) {
    .s2-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .s2-row-tag { width: auto; padding-right: 0; flex-direction: row; align-items: baseline; gap: 8px; }
    .s2-track-viewport { width: 100%; }
    .s2-logo { width: 148px; height: 90px; padding: 12px 18px; }
}

