/* ============================================
   POKER ANALYZER - BASE STYLES
   Reset and foundational styles
   ============================================ */

/* CSS Reset - Modern approach */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Document */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Images */
img, video, picture, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form Elements */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

input, textarea {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Selection */
::selection {
    background-color: var(--gold-primary);
    color: var(--text-inverse);
}

/* Scrollbar - Custom dark style */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--felt-tertiary);
    border-radius: var(--radius-full);
    border: 2px solid var(--felt-primary);
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--felt-tertiary) var(--felt-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* Section Base */
section {
    position: relative;
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* 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: 0;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: var(--glow-gold);
}

/* Card Suit Colors */
.suit-red {
    color: var(--suit-hearts);
}

.suit-black {
    color: var(--suit-spades);
}

/* Positive/Negative indicators */
.positive {
    color: var(--color-success);
}

.negative {
    color: var(--color-danger);
}

/* Felt texture background utility */
.felt-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav, .hero-scroll, .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
