/*
Theme Name: AurumXchange.com
Description: Custom child theme for precious metals exchange website with 12 mini apps. Server-side first approach with minimal JavaScript.
Template: oceanwp
Version: 1.0.0
*/

/* Import Parent Theme Styles */
@import url("../oceanwp/style.css");

/* CSS Variables */
:root {
    --primary-color: #D4AF37; /* Gold */
    --secondary-color: #C0C0C0; /* Silver */
    --accent-color: #1B5E20; /* Dark Green */
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Responsive Logo Scaling */
.site-logo img,
.custom-logo {
    height: auto;
    max-height: 50px; /* Desktop */
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

/* Device-specific breakpoints */
@media (max-width: 1024px) {
    .site-logo img, .custom-logo { max-height: 45px; }
}

@media (max-width: 768px) {
    .site-logo img, .custom-logo { max-height: 40px; }
}

@media (max-width: 480px) {
    .site-logo img, .custom-logo { max-height: 35px; }
}

@media (max-width: 360px) {
    .site-logo img, .custom-logo { max-height: 30px; }
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img, .custom-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Global Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 999999;
}

.skip-link:focus {
    top: 6px;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    overflow: hidden;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #B8860B;
        --secondary-color: #808080;
        --text-dark: #000000;
        --bg-white: #FFFFFF;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

body:not(:target) .back-to-top {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}