/*
Theme Name: Single APK Suite
Theme URI: https://example.com/single-apk-suite
Author: Senior WordPress Architect & Product Designer
Author URI: https://example.com/
Description: A high-performance, lightweight, SEO-first, modular WordPress theme engineered specifically for single APK and software landing/download micro-sites. Featuring the Royal Black + Royal Red Glassmorphism design system.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: single-apk
Tags: two-columns, custom-header, custom-menu, featured-images, translation-ready, full-width-template
*/

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

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--single-apk-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    background-color: var(--single-apk-color-bg, #08090d);
    color: var(--single-apk-color-text, #f8fafc);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glow on Top Center (Level 0 Depth) */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 100vw;
    height: 550px;
    background: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.08) 0%, rgba(8, 9, 13, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Accessible Skip Link */
.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    background: #e11d48;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    z-index: 999999;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease-in-out;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid #f43f5e;
}

/* Root CSS Variables - Royal Black + Royal Red Glassmorphism Tokens */
:root {
    --single-apk-container-width: 1200px;
    --single-apk-container-padding: 1.5rem;
    
    /* Royal Black Foundation */
    --single-apk-color-bg: #08090d;
    --single-apk-color-surface: #0f1219;
    --single-apk-color-surface-hover: #161a24;
    --single-apk-color-border: rgba(255, 255, 255, 0.08);
    --single-apk-color-border-subtle: rgba(255, 255, 255, 0.04);
    
    /* Royal Red Accent System */
    --single-apk-color-primary: #e11d48;
    --single-apk-color-primary-hover: #f43f5e;
    --single-apk-color-primary-dark: #be123c;
    --single-apk-color-primary-glow: rgba(225, 29, 72, 0.22);
    
    /* Secondary & State Colors */
    --single-apk-color-secondary: #10b981;
    --single-apk-color-warning: #f59e0b;
    --single-apk-color-info: #38bdf8;
    
    /* Typography & Contrast */
    --single-apk-color-text: #f8fafc;
    --single-apk-color-text-muted: #94a3b8;
    --single-apk-color-text-dim: #64748b;
    
    /* Glassmorphism Layers */
    --single-apk-glass-base: rgba(15, 18, 25, 0.75);
    --single-apk-glass-elevated: rgba(22, 26, 36, 0.85);
    --single-apk-glass-border: rgba(255, 255, 255, 0.08);
    --single-apk-glass-border-hover: rgba(225, 29, 72, 0.4);
    --single-apk-glass-blur: 14px;
    
    /* Typography */
    --single-apk-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --single-apk-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing & Radii */
    --single-apk-radius-sm: 8px;
    --single-apk-radius-md: 14px;
    --single-apk-radius-lg: 20px;
    --single-apk-radius-full: 9999px;
    
    /* Shadows & Transitions */
    --single-apk-transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --single-apk-shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --single-apk-shadow-red: 0 4px 20px rgba(225, 29, 72, 0.35);
}

@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;
    }
}
