/* ==========================================================================
   Base-Reset-6205183947JLT.css
   PolisForge Control Center - CSS Reset, Base Styles, Utility Classes
   Depends on: Variables-3918405726RCW.css
   ========================================================================== */

/* -----------------------------------------------------------------------
   FONT FACE DECLARATIONS
   Playfair Display - Serif heading font
   ----------------------------------------------------------------------- */
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* -----------------------------------------------------------------------
   GLOBAL RESET
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Reset links */
a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition-color);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Reset images */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Reset form elements */
input, button, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Reset tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin-bottom: var(--space-sm);
}

strong, b {
    font-weight: 700;
}

/* Hidden but accessible */
.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 SELECTION
   ----------------------------------------------------------------------- */
::selection {
    background-color: var(--accent-primary);
    color: var(--text-inverse);
}

::-moz-selection {
    background-color: var(--accent-primary);
    color: var(--text-inverse);
}

/* -----------------------------------------------------------------------
   SCROLLBAR STYLING
   Thin green thumb on light track
   ----------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-tertiary);
    border-radius: 20px 16px 22px 18px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-tertiary) var(--bg-secondary);
}

/* -----------------------------------------------------------------------
   FOCUS STYLES
   ----------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   GLASS UTILITY CLASS
   Glassmorphism panel with green tint
   ----------------------------------------------------------------------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(247, 245, 242, 0.04);
    transition: var(--transition-normal);
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

/* -----------------------------------------------------------------------
   SKELETON LOADING
   Shimmer animation from bg-secondary to bg-tertiary
   ----------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 40%,
        var(--bg-elevated) 50%,
        var(--bg-tertiary) 60%,
        var(--bg-secondary) 100%
    );
    background-size: 300% 100%;
    animation: skeleton-shimmer 2s var(--ease-smooth) infinite;
    border-radius: var(--radius-input);
    color: transparent;
    pointer-events: none;
    user-select: none;
}

.skeleton::after {
    content: '\00a0';
}

/* -----------------------------------------------------------------------
   LIQUID BUTTON
   Green gradient button with animated border
   ----------------------------------------------------------------------- */
.liquid-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    text-transform: uppercase;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--duration-fast) var(--ease-snappy);
}

.liquid-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        var(--accent-tertiary),
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-primary),
        var(--accent-tertiary)
    );
    background-size: 400% 400%;
    border-radius: var(--radius-button);
    z-index: -2;
    animation: liquid-gradient 8s ease infinite;
}

.liquid-button::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    border-radius: var(--radius-button);
    z-index: -1;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.liquid-button:hover::after {
    opacity: 0;
}

.liquid-button:hover {
    transform: translateY(-2px);
}

.liquid-button:active {
    transform: translateY(0) scale(0.97);
}

@keyframes liquid-gradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* -----------------------------------------------------------------------
   GLITCH TEXT
   Green pseudo-element overlays
   ----------------------------------------------------------------------- */
.glitch-text {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-primary);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.glitch-text::before {
    color: var(--accent-secondary);
    animation: glitch-1 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%);
}

.glitch-text::after {
    color: var(--accent-tertiary);
    animation: glitch-2 3.5s infinite linear alternate-reverse;
    clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%);
}

/* -----------------------------------------------------------------------
   ACCESSIBILITY: REDUCED MOTION
   Disable all animations and transitions
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .skeleton {
        animation: none;
        background: var(--bg-tertiary);
    }

    .liquid-button::before {
        animation: none;
        background: var(--accent-primary);
    }

    .glitch-text::before,
    .glitch-text::after {
        animation: none;
        display: none;
    }
}

/* -----------------------------------------------------------------------
   TOUCH DEVICE SUPPORT
   48px minimum touch targets, hide cursor elements
   ----------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    input[type="submit"],
    input[type="button"],
    .liquid-button,
    .action-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .custom-cursor-outer,
    .custom-cursor-inner {
        display: none !important;
    }

    /* Increase tap spacing */
    body {
        -webkit-tap-highlight-color: rgba(26, 77, 46, 0.2);
    }
}

/* -----------------------------------------------------------------------
   UTILITY: VISUALLY HIDDEN
   ----------------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* -----------------------------------------------------------------------
   UTILITY: TEXT HELPERS
   ----------------------------------------------------------------------- */
.text-accent {
    color: var(--accent-primary);
}

.text-muted {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}
