/*
Theme Name: BJ88NOW
Theme URI: https://dikitoo.com
Description: Modern dark theme for casino reviews - Brazilian Portuguese
Author: BJ88
Author URI: https://dikitoo.com
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: bj88now
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* CSS Variables - Brazilian Dark Theme */
:root {
    /* Core Colors - Brazilian Palette */
    --background: #0d1117;
    --foreground: #f0f6fc;
    --card: #161b22;
    --card-foreground: #f0f6fc;
    --surface: #21262d;

    /* Sidebar/Header Colors */
    --sidebar: #161b22;
    --sidebar-foreground: #f0f6fc;
    --sidebar-accent: #21262d;
    --sidebar-border: #30363d;

    /* Primary Colors - Brazilian Green */
    --primary: #00b347;
    --primary-foreground: #ffffff;
    --primary-hover: #009c3b;

    /* Accent/Gold Colors - Brazilian Gold */
    --accent: #f5a623;
    --accent-foreground: #ffffff;

    /* Secondary Colors */
    --secondary: #21262d;
    --secondary-foreground: #f0f6fc;

    /* Muted Colors */
    --muted: #21262d;
    --muted-foreground: #8b949e;

    /* Border Colors */
    --border: #30363d;
    --input: #21262d;

    /* Status Colors */
    --destructive: #f85149;
    --warning: #d29922;
    --success: #2ea043;
    --gold: #fbbf24;

    /* Chart Colors */
    --chart-1: #00b347;
    --chart-2: #f5a623;
    --chart-3: #58a6ff;
    --chart-4: #8b5cf6;
    --chart-5: #06b6d4;

    /* Spacing */
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Prevent horizontal overflow */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

/* Global mobile overflow fix */
*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Fix for grid/flex children */
.container,
article,
section,
main,
header,
footer,
div {
    min-width: 0;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-gold {
    color: var(--gold);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-card {
    background-color: var(--card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: var(--accent-foreground);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--sidebar-accent);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--sidebar-foreground);
}

.btn-ghost:hover {
    background: var(--sidebar-accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-accent {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

.badge-gold {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

/* Star Rating */
.stars {
    display: flex;
    gap: 1px;
}

.star {
    width: 0.75rem;
    height: 0.75rem;
}

.star-filled {
    color: var(--gold);
    fill: var(--gold);
}

.star-empty {
    color: var(--muted);
    fill: var(--muted);
}

/* Smaller stars for compact views */
.stars-sm .star {
    width: 0.625rem;
    height: 0.625rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Icons */
.icon,
svg.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon-xs,
svg.icon-xs {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-sm,
svg.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}
