/*
Theme Name: Fradox Global
Theme URI: https://fradox.com
Author: Fradox Global Co., Ltd
Author URI: https://fradox.com
Description: Professional WordPress theme for Fradox Global - Industrial Cooling Solutions. Features modern design with dark mode support, responsive layout, and custom product management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: fradox
Tags: business, corporate, custom-colors, custom-menu, dark-mode, featured-images, full-width-template, responsive-layout, translation-ready

Fradox Global - Advanced Cooling Solutions
Copyright (C) 2024 Fradox Global Co., Ltd
*/

/* ===================================
   CSS Variables & Base Styles
   =================================== */

:root {
    --primary: #135bec;
    --primary-hover: #1046c4;
    --background-light: #f6f6f8;
    --background-dark: #101622;
    --text-dark: #111318;
    --text-light: #ffffff;
    --text-muted: #616f89;
    --border-light: #e5e7eb;
    --border-dark: #1f2937;
}

/* Dark Mode */
html.dark {
    --background: var(--background-dark);
    --text: var(--text-light);
    --text-secondary: #9ca3af;
    --border: var(--border-dark);
}

html.light {
    --background: var(--background-light);
    --text: var(--text-dark);
    --text-secondary: var(--text-muted);
    --border: var(--border-light);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(19, 91, 236, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

html.dark .card {
    background-color: #1a202c;
    border-color: var(--border-dark);
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Material Icons Fix */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background-color: #f9fafb;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

html.dark input,
html.dark textarea,
html.dark select {
    background-color: #111827;
    border-color: var(--border-dark);
    color: var(--text-light);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 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;
}

/* No Scrollbar */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
