/*
Theme Name: Alexandre Olanda - Fotógrafo de Rua
Theme URI: https://alexandreolanda.com
Author: Alexandre Olanda
Author URI: https://alexandreolanda.com
Description: Tema exclusivo para fotógrafo de rua. Design dark & cinematic com galeria masonry, lightbox interativo e integração WooCommerce para venda de fotografias.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aolanda
Tags: photography, dark, portfolio, e-commerce, gallery, custom-menu, featured-images, translation-ready

Alexandre Olanda — Capturing the soul of the streets.
*/

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-surface: #141414;
    --color-surface-hover: #1a1a1a;
    --color-surface-elevated: #1e1e1e;
    --color-border: #2a2a2a;
    --color-border-light: #333333;

    --color-accent: #d4a853;
    --color-accent-hover: #e8c06a;
    --color-accent-light: rgba(212, 168, 83, 0.15);
    --color-accent-glow: rgba(212, 168, 83, 0.3);

    --color-text-primary: #f0f0f0;
    --color-text-secondary: #999999;
    --color-text-muted: #666666;
    --color-text-inverse: #0a0a0a;

    --color-success: #4caf50;
    --color-error: #ef5350;
    --color-warning: #ffa726;

    --color-overlay: rgba(10, 10, 10, 0.7);
    --color-overlay-heavy: rgba(10, 10, 10, 0.85);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --fs-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    --fs-lg: clamp(1.2rem, 1rem + 1vw, 1.6rem);
    --fs-xl: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
    --fs-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
    --fs-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
    --fs-4xl: clamp(3rem, 2rem + 5vw, 6rem);

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    --ls-tight: -0.03em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-wider: 0.1em;
    --ls-widest: 0.2em;

    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-6xl: 12rem;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1440px;
    --container-full: 1600px;

    --header-height: 80px;
    --header-height-scrolled: 64px;

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--color-accent-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-below: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-lightbox: 600;
    --z-toast: 700;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus {
    color: var(--color-accent-hover);
}

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

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

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

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

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

/* Skip to content - Accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    color: var(--color-text-inverse);
    font-weight: var(--fw-semibold);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
    color: var(--color-text-inverse);
}

/* Screen reader only */
.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;
}
