/* ═══════════════════════════════════════════════════════════════
   REDEFY — GLOBAL GEN Z DARK THEME
   Applies across all pages. Pure visual layer — no content changes.
═══════════════════════════════════════════════════════════════ */

/* ── Grain noise on everything ── */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.032;
    pointer-events: none;
    z-index: 9998;
    animation: gzGrainDrift 0.15s steps(1) infinite;
}
@keyframes gzGrainDrift {
    0%  { transform: translate(0,0) rotate(0deg); }
    20% { transform: translate(-2%,3%) rotate(0.3deg); }
    40% { transform: translate(3%,-2%) rotate(-0.2deg); }
    60% { transform: translate(-3%,1%) rotate(0.1deg); }
    80% { transform: translate(2%,-3%) rotate(-0.3deg); }
}

/* ── Core resets ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background: #000 !important;
    color: #e8e8e8 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    background: none !important;
    opacity: 0 !important;
}

/* ── Typography global overrides ── */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
    line-height: 1.0 !important;
}

p, span, div, li, td, th {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

a {
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}
a:hover { opacity: 0.6 !important; }

/* ── Bootstrap overrides ── */
.bg-white, .bg-light { background: #0a0a0a !important; }
.bg-dark { background: #000 !important; }
.text-dark, .text-black { color: #fff !important; }
.text-muted { color: #555 !important; }
.text-secondary { color: #666 !important; }
.border { border-color: #1a1a1a !important; }
.border-top { border-top-color: #1a1a1a !important; }
.border-bottom { border-bottom-color: #1a1a1a !important; }

/* ── Navbar ── */
.navbar,
nav,
.nav,
header,
.header,
.site-header,
.top-nav,
.main-nav,
[class*="navbar"],
[class*="-header"] {
    background: #000 !important;
    border-bottom: 1px solid #111 !important;
    backdrop-filter: none !important;
}

.navbar-brand, .nav-brand {
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.nav-link, .navbar-nav .nav-link {
    color: #555 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    transition: color 0.2s !important;
}
.nav-link:hover, .navbar-nav .nav-link:hover {
    color: #fff !important;
    opacity: 1 !important;
}
.nav-link.active, .navbar-nav .nav-link.active {
    color: #fff !important;
}

/* ── Cards ── */
.card,
[class*="-card"],
[class*="card-"] {
    background: #050505 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #e8e8e8 !important;
    transition: border-color 0.2s ease !important;
}
.card:hover,
[class*="-card"]:hover {
    border-color: #333 !important;
}
.card-header, .card-footer {
    background: #000 !important;
    border-color: #111 !important;
}
.card-title { color: #fff !important; }
.card-text { color: #888 !important; }
.card-body { background: transparent !important; }

/* ── Buttons ── */
.btn,
button:not([class*="ghero"]):not([class*="chat"]):not([class*="widget"]):not(.no-theme) {
    border-radius: 0 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
}
.btn-primary:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.btn-secondary, .btn-outline-secondary {
    background: transparent !important;
    border-color: #2a2a2a !important;
    color: #fff !important;
}
.btn-secondary:hover, .btn-outline-secondary:hover {
    border-color: #fff !important;
    background: #fff !important;
    color: #000 !important;
}

.btn-outline-primary {
    background: transparent !important;
    border-color: #fff !important;
    color: #fff !important;
}
.btn-outline-primary:hover {
    background: #fff !important;
    color: #000 !important;
}

.btn-dark {
    background: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
}
.btn-light {
    background: #111 !important;
    border-color: #222 !important;
    color: #fff !important;
}

/* ── Form controls ── */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: #0a0a0a !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    transition: border-color 0.2s !important;
}
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background: #0a0a0a !important;
    border-color: #fff !important;
    box-shadow: none !important;
    color: #fff !important;
    outline: none !important;
}
.form-control::placeholder, input::placeholder, textarea::placeholder {
    color: #333 !important;
}
.form-label, label {
    color: #555 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

/* ── Tables ── */
.table, table {
    color: #e8e8e8 !important;
    border-color: #111 !important;
}
.table thead th, table thead th {
    background: #000 !important;
    border-color: #111 !important;
    color: #555 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    padding: 14px 16px !important;
}
.table tbody tr, table tbody tr {
    border-color: #0d0d0d !important;
    transition: background 0.15s !important;
}
.table tbody tr:hover, table tbody tr:hover {
    background: #060606 !important;
}
.table td, table td {
    border-color: #0d0d0d !important;
    color: #aaa !important;
    font-size: 13px !important;
    vertical-align: middle !important;
    padding: 14px 16px !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background: #050505 !important;
}

/* ── Alerts / Badges ── */
.alert {
    border-radius: 0 !important;
    border: 1px solid #1a1a1a !important;
    background: #050505 !important;
    color: #aaa !important;
}
.alert-success { border-left: 2px solid #fff !important; }
.alert-danger  { border-left: 2px solid #888 !important; }
.alert-info    { border-left: 2px solid #555 !important; }
.alert-warning { border-left: 2px solid #777 !important; }

.badge {
    border-radius: 0 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 5px 8px !important;
}
.badge.bg-primary { background: #fff !important; color: #000 !important; }
.badge.bg-secondary { background: #111 !important; color: #555 !important; border: 1px solid #222 !important; }
.badge.bg-success { background: #1a1a1a !important; color: #888 !important; }
.badge.bg-danger { background: #111 !important; color: #666 !important; }

/* ── Dropdowns ── */
.dropdown-menu {
    background: #050505 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.8) !important;
}
.dropdown-item {
    color: #888 !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    transition: all 0.15s !important;
}
.dropdown-item:hover {
    background: #0a0a0a !important;
    color: #fff !important;
}
.dropdown-divider { border-color: #111 !important; }

/* ── Modals ── */
.modal-content {
    background: #050505 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.95) !important;
}
.modal-header {
    background: #000 !important;
    border-bottom: 1px solid #111 !important;
}
.modal-footer {
    background: #000 !important;
    border-top: 1px solid #111 !important;
}
.modal-title { color: #fff !important; letter-spacing: 3px !important; }
.modal-backdrop { background: #000 !important; opacity: 0.92 !important; }
.btn-close {
    filter: invert(1) !important;
    opacity: 0.4 !important;
}
.btn-close:hover { opacity: 1 !important; }

/* ── Sections / containers ── */
section,
.section,
[class*="-section"] {
    background: #000 !important;
    border-color: #111 !important;
}
.section-title,
[class*="section-title"],
[class*="-heading"] {
    color: #fff !important;
}

.container, .container-fluid {
    background: transparent !important;
}

/* ── List groups ── */
.list-group-item {
    background: #050505 !important;
    border-color: #111 !important;
    color: #aaa !important;
    border-radius: 0 !important;
    transition: background 0.15s !important;
}
.list-group-item:hover { background: #0a0a0a !important; color: #fff !important; }
.list-group-item.active { background: #fff !important; color: #000 !important; border-color: #fff !important; }

/* ── Progress bars ── */
.progress {
    background: #111 !important;
    border-radius: 0 !important;
    height: 2px !important;
}
.progress-bar {
    background: #fff !important;
    border-radius: 0 !important;
}

/* ── Tabs / Pills ── */
.nav-tabs {
    border-bottom: 1px solid #111 !important;
}
.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    transition: all 0.2s !important;
}
.nav-tabs .nav-link:hover { color: #fff !important; border-bottom-color: #333 !important; }
.nav-tabs .nav-link.active { color: #fff !important; border-bottom-color: #fff !important; background: transparent !important; }

/* ── Footer ── */
footer,
.footer,
[class*="-footer"] {
    background: #000 !important;
    border-top: 1px solid #0d0d0d !important;
    color: #333 !important;
}

/* ── Dividers & rules ── */
hr, .divider {
    border-color: #111 !important;
    opacity: 1 !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #1a1a1a; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }

/* ── Selection ── */
::selection { background: #fff; color: #000; }

/* ── Section labels (common pattern in Redefy) ── */
[class*="section-label"],
[class*="-label"],
[class*="eyebrow"],
.label,
.category-label,
.tag-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #333 !important;
}

/* ── Grid / editorial layout feel ── */
[class*="grid-"],
[class*="-grid"] {
    gap: 1px !important;
}

/* ── Images ── */
img {
    filter: brightness(0.92) contrast(1.04);
}

/* ── Pagination ── */
.pagination .page-link {
    background: #000 !important;
    border-color: #111 !important;
    color: #555 !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
}
.pagination .page-link:hover { background: #111 !important; color: #fff !important; }
.pagination .page-item.active .page-link { background: #fff !important; color: #000 !important; border-color: #fff !important; }

/* ── Accordion ── */
.accordion-item {
    background: #000 !important;
    border-color: #111 !important;
    border-radius: 0 !important;
}
.accordion-button {
    background: #050505 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: #000 !important;
    color: #fff !important;
}
.accordion-button::after { filter: invert(1); }
.accordion-body {
    background: #000 !important;
    color: #888 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    border-top: 1px solid #0d0d0d !important;
}

/* ── Tooltips ── */
.tooltip-inner {
    background: #111 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    border: 1px solid #222 !important;
}

/* ── Redefy-specific overrides ── */
.tool-flow-section,
.culture-decode-section,
.archive-poster-section,
.saket-announcement,
.travel-hero-section,
.brand-rankings-section,
.pulse-bar,
.pulse-bar-outer,
.trend-cards-section {
    background: #000 !important;
    border-top: 1px solid #0d0d0d !important;
}

.tool-flow-card {
    background: #050505 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
}
.tool-flow-card:hover {
    border-color: #333 !important;
    background: #070707 !important;
}
.tool-flow-title { color: #fff !important; }
.tool-flow-desc { color: #555 !important; }

/* ── Body background fix for fafafa pages ── */
body[style*="background"],
.body-white,
.page-wrapper {
    background: #000 !important;
}
