/* IndoCheats — Gaming Flat UI */

::selection { background: rgba(255,62,62,0.25); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3d3d52; border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: #2b2b3d; }

/* ============================================
   GAMING BUTTON
   ============================================ */
.gaming-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #ff3e3e, #ff8c00);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.gaming-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,62,62,0.25);
}
.gaming-btn:active { transform: translateY(0) scale(0.98); }

/* ============================================
   CARD
   ============================================ */
.g-card {
    background: #ffffff;
    border: 1px solid #e0e0e8;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.dark .g-card {
    background: #14141e;
    border-color: #222233;
}
.g-card:hover {
    border-color: #c8c8d4;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.dark .g-card:hover {
    border-color: #333348;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card { cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.dark .product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.product-card:hover .product-img { transform: scale(1.04); }
.product-img { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }

/* ============================================
   ACCENT LINE
   ============================================ */
.accent-line {
    height: 3px;
    background: linear-gradient(90deg, #ff3e3e, #ff8c00, transparent);
    border-radius: 2px;
}

/* ============================================
   STAT CARD
   ============================================ */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent, #ff3e3e), transparent);
}

/* ============================================
   TABLE
   ============================================ */
.g-table { width: 100%; text-align: left; font-size: 0.85rem; border-collapse: collapse; }
.g-table thead th {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 16px;
    color: #8888a0;
    background: #f8f8fb;
    border-bottom: 1px solid #e0e0e8;
}
.dark .g-table thead th {
    color: #5a5a72;
    background: #111119;
    border-color: #222233;
}
.g-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f5;
    color: #444460;
}
.dark .g-table tbody td {
    border-color: #1a1a28;
    color: #9898b0;
}
.g-table tbody tr { transition: background 0.12s; }
.g-table tbody tr:hover { background: #f5f5fa; }
.dark .g-table tbody tr:hover { background: #181824; }

/* ============================================
   INPUT
   ============================================ */
.g-input {
    width: 100%;
    padding: 9px 13px;
    font-size: 0.875rem;
    font-family: inherit;
    border-radius: 6px;
    border: 1px solid #d4d4de;
    background: #fafafa;
    color: #222240;
    /* Single clean border — no double outline */
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}
.dark .g-input {
    background: #0c0c14;
    border-color: #262638;
    color: #e0e0ec;
}
.g-input:focus {
    border-color: #ff3e3e !important;
    outline: none !important;
    box-shadow: none !important;
}
.g-input::placeholder { color: #a0a0b4; }
.dark .g-input::placeholder { color: #404058; }

/* Number inputs — hide classic spinner, use monospace font */
input[type="number"].g-input,
input[type="number"] {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    -moz-appearance: textfield;
}
input[type="number"].g-input::-webkit-inner-spin-button,
input[type="number"].g-input::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Select — custom arrow, no double border */
select.g-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* ============================================
   BADGE
   ============================================ */
.g-badge {
    display: inline-block;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
}

/* ============================================
   PAGE BACKGROUND (Dashboard/Admin panels)
   ============================================ */
.page-bg {
    background: #f0f0f5;
    border: 1px solid #dcdce6;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 8px;
}
.dark .page-bg {
    background: #0e0e16;
    border-color: #1c1c2c;
}

/* ============================================
   UTILITIES
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeUp 0.25s ease; }

:focus-visible { outline: 2px solid #ff3e3e; outline-offset: 2px; }

@media print {
    body { background: #fff !important; color: #000 !important; }
    nav, footer, canvas, button { display: none !important; }
}

/* ============================================
   FULL-WIDTH HERO SLIDER
   ============================================ */
.full-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.full-hero-slide {
    position: relative;
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-hero-fallback {
    background: linear-gradient(135deg, #0a0a10 0%, #1a0a0a 50%, #0a0a18 100%);
}

.full-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.75) 100%
    );
    z-index: 1;
}

.full-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.full-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.full-hero-arrow:hover { background: rgba(0,0,0,0.7); }

/* Page container for non-home pages */
.page-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (max-width: 768px) {
    .full-hero-slide { height: 320px; }
}

/* ============================================
   FONT WEIGHT FIXES
   ============================================ */
/* Ensure body text is readable — Rajdhani needs font-weight 500+ */
body { font-weight: 500; }

.g-table tbody td { font-weight: 500; }
.g-table thead th { font-weight: 700; }

/* Info/helper text should be readable */
.text-g-400 { font-weight: 500; }

/* Prevent Alpine.js flash on init */
[x-cloak] { display: none !important; }
