/* Design system (shadcn + Webflow inspired) — buttons, cards, badges, icons, motion */
@import url('ui.css');

/* ===== Base ===== */
body { font-family: 'Lato', system-ui, sans-serif; }

/* ===== Pricing price spacing ===== */
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.5rem; margin-bottom: 0.75rem; }
.price-period { font-weight: 400; }
.regular-price { font-size: 0.875rem; color: #9ca3af; margin-bottom: 1.25rem; }
.regular-price .strike { text-decoration: line-through; margin-left: 0.35rem; }
.regular-price .price-dark { color: #6b7280; }
.dark-card .regular-price { color: #6b7280; }
.dark-card .regular-price .strike { color: #6b7280; }

.gradient-text {
    background: linear-gradient(135deg, #FFAA00 0%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: radial-gradient(ellipse at top right, rgba(255, 170, 0, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(255, 170, 0, 0.05) 0%, transparent 50%);
}

/* ===== Animations (hero badges) ===== */
.float-badge { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }

.pulse-dot { animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== Technical specification tables ===== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.spec-table thead th { background: #070300; color: #fff; font-weight: 700; position: sticky; top: 0; }
.spec-table tbody tr:nth-child(even) { background: #F8FAFC; }
.spec-table .group-row td { background: #FFF8E1; font-weight: 700; color: #CC8800; }
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 0.75rem; }

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Header dropdown navigation ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-trigger { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-dropdown > .nav-trigger svg { width: 0.75rem; height: 0.75rem; transition: transform 0.2s ease; }
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    margin-top: 0.75rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(7, 3, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown:hover > .nav-trigger svg { transform: rotate(180deg); }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-menu a:hover { background: #FFF8E1; color: #CC8800; }
.country-option { display: flex; align-items: center; gap: 0.4rem; }
.country-option.country-active { background: #FFF8E1; color: #CC8800; font-weight: 600; cursor: default; }
.country-option.country-active::after { content: "\2713"; margin-left: auto; padding-left: 0.5rem; }

/* ===== Mobile menu (matches blog header style) ===== */
.mobile-link { display: block; padding: .7rem .85rem; border-radius: .65rem; color: #334155; font-weight: 500; }
.mobile-link:hover, .mobile-link:focus { background: #FFF8E1; color: #CC8800; }
.mobile-link.is-active { background: #FFF8E1; color: #CC8800; font-weight: 600; }
.mobile-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: .7rem .85rem; border-radius: .65rem; color: #334155; font-weight: 500; background: transparent; border: 0; cursor: pointer; }
.mobile-acc-btn:hover { background: #FFF8E1; color: #CC8800; }
.mobile-acc-btn svg { width: 1.1rem; height: 1.1rem; transition: transform .25s ease; }
.mobile-acc.open .mobile-acc-btn svg { transform: rotate(180deg); }
.mobile-acc.open .mobile-acc-panel { display: block; }
.mobile-acc-panel { padding: .15rem 0 .35rem .6rem; display: none; }
.mobile-sublink { display: block; padding: .55rem .85rem; border-radius: .6rem; color: #64748b; font-size: .95rem; }
.mobile-sublink:hover { background: #F8FAFC; color: #CC8800; }
.mobile-cta { display: block; margin-top: .65rem; padding: .8rem; text-align: center; background: #FFAA00; color: #fff; font-weight: 600; border-radius: .85rem; box-shadow: 0 8px 20px rgba(255, 170, 0, .25); }
.mobile-cta:hover { background: #E59900; }

/* ===== VPS page (bdix-vps.html) ===== */
.hero-gradient.vps-hero { background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 50%, #FFFBF5 100%); }
.checkmark { color: #FFAA00; }

/* Category tabs */
.vps-tab { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.vps-tab.active { background: linear-gradient(135deg, #FFAA00 0%, #FFC107 100%); color: #fff; box-shadow: 0 4px 15px rgba(255, 170, 0, 0.35); }
.vps-tab.inactive { background-color: #f1f5f9; color: #64748b; }
.vps-tab.inactive:hover { background-color: #e2e8f0; color: #070300; }

/* Plan panels */
.vps-plans { display: none; }
.vps-plans.active { display: block; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Plan cards */
.vps-plan { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.vps-plan:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(7, 3, 0, 0.12); }
.vps-plan.featured { box-shadow: 0 25px 50px rgba(255, 170, 0, 0.18); }

.vps-order-btn { transition: all 0.3s ease; }
.vps-order-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 170, 0, 0.3); }

.vps-stockout { opacity: 0.55; }
.vps-stockout .vps-order-btn { pointer-events: none; background: #94a3b8 !important; }

/* ===== UX: anchor offset for sticky nav ===== */
section[id] { scroll-margin-top: 6rem; }

/* ===== UX: Collapsible features section (native <details>) ===== */
.features-details > summary { list-style: none; cursor: pointer; }
.features-details > summary::-webkit-details-marker { display: none; }
.features-details > summary { transition: opacity .2s ease; }
.features-details[open] > summary .features-chevron { transform: rotate(180deg); }
.features-chevron { transition: transform .3s ease; }
.features-details > summary:hover .features-chevron { background: #FFF8E1; border-color: #FFAA00; }

/* ===== UX: FAQ accordion (native <details>) ===== */
.faq-details { overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-details > summary { list-style: none; cursor: pointer; }
.faq-details > summary::-webkit-details-marker { display: none; }
.faq-summary { transition: background .2s ease; }
.faq-summary:hover { background: #FFF8E1; }
.faq-details[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .3s ease; flex-shrink: 0; }
.faq-details[open] { border-color: rgba(255, 170, 0, 0.45); box-shadow: 0 8px 24px rgba(7, 3, 0, 0.06); }

/* ===== UX: Back-to-top button ===== */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #FFAA00;
    color: #070300;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 170, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease;
    z-index: 70;
    border: 0;
    cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #E59900; }
.back-to-top:focus-visible { outline: 3px solid rgba(255, 170, 0, 0.5); outline-offset: 2px; }

/* ===== UX: Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive specification tables (stacked cards on mobile) ===== */
@media (max-width: 767px) {
    .spec-scroll { border: 0; }
    .spec-table thead {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0);
        white-space: nowrap; border: 0;
    }
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
    .spec-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        overflow: hidden;
        background: #fff;
    }
    .spec-table tbody tr:nth-child(even) { background: #fff; }
    .spec-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        text-align: right;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.75rem 1rem;
    }
    .spec-table td:last-child { border-bottom: 0; }
    .spec-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #334155;
        text-align: left;
    }
}
