/**
 * MH5 Shop Design System - EXACT Match to therealmh5.com
 * Cloned from main site luxury-dark theme
 */

/* Import Google Fonts - Matching main site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
    /* MH5 Color Palette - EXACT match from main site */
    --color-primary: #7df9ff; /* Ice/Cyan - Primary brand color */
    --color-secondary: #9dfbff; /* Frost - Secondary color */
    --color-accent: #bdfcff; /* Diamond - Accent color */

    /* Background colors - matching main site */
    --color-bg-primary: #050505; /* Midnight - Primary background */
    --color-bg-secondary: #111; /* Smoke - Secondary background */
    --color-bg-tertiary: #1a1a1a; /* Tertiary background */
    --color-bg: #050505; /* Alias for primary */
    --color-surface: #1a1a1a; /* Charcoal - Surface/Cards */
    --color-surface-hover: #242424; /* Lighter charcoal for hover */

    /* Border colors - matching main site */
    --color-border-default: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Text colors - matching main site */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: rgba(245, 245, 245, 0.7);
    --color-text-muted: rgba(245, 245, 245, 0.4);
    --color-text-inverse: #0a0a0a; /* Dark text on cyan buttons */

    /* Gray scale - matching Tailwind gray used on main site */
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;

    /* Additional colors */
    --color-success: #00c758;
    --color-error: #fb2c36;
    --color-warning: #fe6e00;

    /* Typography - EXACT fonts from main site */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary); /* #050505 - Matching main site exactly */
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Container */
.mh5-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cards - Matching main site card-clean style */
.mh5-card {
    background: rgba(255, 255, 255, 0.02); /* #ffffff05 - Matching main site */
    border: 1px solid rgba(255, 255, 255, 0.08); /* #ffffff14 - Matching main site */
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh5-card:hover {
    background: rgba(255, 255, 255, 0.04); /* #ffffff0a - Matching main site */
    border-color: var(--color-primary); /* Orange border on hover */
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons - Cyan theme matching main site */
.mh5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 44px;
    background: var(--color-primary); /* #7df9ff - Cyan */
    color: var(--color-text-inverse); /* #0a0a0a - Dark text on cyan */
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.mh5-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: var(--color-text-inverse);
}

.mh5-btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.mh5-btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Sections */
.mh5-section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.mh5-section:last-child {
    border-bottom: none;
}

/* Grid */
.mh5-grid {
    display: grid;
    gap: 2rem;
}

.mh5-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mh5-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mh5-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Text Utilities */
.text-primary {
    color: var(--color-primary); /* #7df9ff - Cyan */
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-white {
    color: var(--color-text-primary);
}

/* Background Utilities */
.bg-surface {
    background-color: var(--color-surface);
}

.bg-bg {
    background-color: var(--color-bg);
}

/* Header - EXACT match to main site */
.mh5-header {
    background: transparent;
    padding: 1rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.mh5-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #222;
}

.mh5-header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.mh5-logo {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.mh5-logo a {
    color: inherit;
    text-decoration: none;
}

.mh5-logo span {
    color: var(--color-primary);
}

.mh5-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mh5-nav a {
    font-family: var(--font-body);
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.mh5-nav a:hover,
.mh5-nav a.active {
    color: var(--color-primary);
}

/* Footer - Matching main site exactly */
.mh5-footer {
    border-top: 1px solid #222;
    background: #000;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 10;
}

html {
    background-color: var(--color-bg-primary); /* #050505 */
    scroll-behavior: smooth;
}

.mh5-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mh5-footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.mh5-footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .mh5-footer-brand {
        text-align: left;
    }
}

.mh5-footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mh5-footer-brand .copyright {
    font-size: 0.75rem;
    color: #6b7280; /* gray-500 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mh5-footer-brand .managed-by {
    font-size: 0.75rem;
    color: #4b5563; /* gray-600 */
    margin-top: 0.5rem;
}

.mh5-footer-brand .managed-by a {
    color: #6b7280; /* gray-500 */
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh5-footer-brand .managed-by a:hover {
    color: var(--color-primary); /* #7df9ff - Cyan */
}

.mh5-footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .mh5-footer-social {
        justify-content: flex-end;
    }
}

.mh5-footer-social a {
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 9999px;
    color: #9ca3af; /* gray-400 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mh5-footer-social a:hover {
    color: var(--color-primary); /* #7df9ff - Cyan */
    border-color: var(--color-primary);
}

.mh5-footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Lists */
ul.mh5-list {
    list-style: none;
    padding: 0;
}

ul.mh5-list li {
    color: var(--color-text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
    position: relative;
}

ul.mh5-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Tables */
.mh5-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text-secondary);
}

.mh5-table th {
    padding: 1rem;
    text-align: left;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
}

.mh5-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mh5-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Menu Button */
.mh5-menu-btn {
    display: none;
    background: none;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.mh5-menu-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.mh5-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mh5-container {
        padding: 0 1.5rem;
    }

    .mh5-section {
        padding: var(--spacing-md) 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .mh5-header {
        padding: 1rem;
    }

    .mh5-menu-btn {
        display: block;
    }

    .mh5-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid #222;
    }

    .mh5-nav.open {
        display: flex;
    }

    .mh5-nav a {
        font-size: 0.875rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .mh5-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Page content offset for fixed header */
.page-content {
    padding-top: 80px;
}

