/*
Theme Name: Universal Glassmorphism Premium
Author: Hypercognito Computings
Version: 7.2
Description: Device-agnostic fluid UI with Sticky Footer logic and Shortcode height fixes.
*/

/* --- 1. MODERN CORE & FLUID VARIABLES --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #10b981;
    --dark: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.96);
    --border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    
    /* Fluid Typography Engine */
    --font-h1: clamp(32px, 7vw, 56px);
    --font-h2: clamp(26px, 5vw, 40px);
    --font-body: clamp(16px, 2vw, 18px);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

/* --- PIN FOOTER TO BOTTOM LOGIC --- */
html {
    height: 100%;
}

body { 
    display: flex;
    flex-direction: column; 
    min-height: 100vh; /* Ensures body is at least as tall as the screen */
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: #f8fafc; 
    color: var(--text-main); 
    line-height: 1.8; 
    overflow-x: hidden;
    font-size: var(--font-body);
}

/* This targets your <main> or content wrapper to push the footer down */
main, .site-main-content, #primary, #content {
    flex: 1 0 auto; 
    display: flex;
    flex-direction: column;
}

/* THE SHORTCODE FIX: Ensures the inner container expands to fill the space */
.container { 
    width: 92%; 
    max-width: 1280px; 
    margin: 0 auto; 
    flex-grow: 1; /* Forces the container to expand vertically */
}

.site-footer {
    flex-shrink: 0; 
    background: var(--dark); 
    color: #94a3b8; 
    padding: 80px 0 40px;
}

/* --- 2. UNIVERSAL HEADER --- */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 10px 0;
    flex-shrink: 0;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 50px; width: auto; }
.logo a { font-size: 24px; font-weight: 900; text-decoration: none; color: var(--dark); }

/* --- 3. FLEXIBLE NAVIGATION --- */
.nav-list { list-style: none; display: flex; gap: 2vw; margin: 0; padding: 0; align-items: center; }
.nav-list a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: 0.2s; }
.nav-list a:hover { color: var(--primary); }

.header-auth { display: flex; align-items: center; gap: 15px; }
.btn-member { 
    background: var(--primary); color: white !important; 
    padding: 12px 24px; border-radius: 50px; font-weight: 700;
    box-shadow: var(--shadow-sm); transition: 0.3s;
}
.btn-member:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* --- 4. FLUID HERO SLIDER --- */
.hyper-hero-slider { 
    position: relative; 
    height: 80vh; 
    min-height: 500px;
    max-height: 800px;
    width: 100%; 
    overflow: hidden; 
    background: #000; 
}
.slider-container { height: 100%; width: 100%; }
.slide { 
    position: absolute; inset: 0; 
    opacity: 0; transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1); 
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1 !important; z-index: 1; }
.slide-overlay { 
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.2)); 
    height: 100%; display: flex; align-items: center; 
}
.slide-content { max-width: 800px; color: #fff; padding: 20px; }
.slide-content h2 { color: #fff; margin-bottom: 1.5rem; }

/* --- 5. SMART RESPONSIVE GRID --- */
.footer-columns, .products, .listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* --- 6. MOBILE OVERRIDES --- */
.menu-toggle { display: none; flex-direction: column; gap: 6px; border: none; background: none; padding: 10px; }
.menu-toggle .bar { width: 28px; height: 3px; background: var(--dark); border-radius: 2px; }

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column; padding: 40px 5%;
        box-shadow: var(--shadow-md); border-top: 1px solid #eee;
    }
    .nav-menu.active { display: flex; animation: slideDown 0.3s ease-out; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 20px; }
    .header-auth { margin-top: 30px; padding-top: 30px; border-top: 1px solid #f1f5f9; width: 100%; }
    .hyper-hero-slider { height: 60vh; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 7. CONTENT & UI ELEMENTS --- */
article {
    background: var(--white); padding: clamp(20px, 5vw, 50px); 
    border-radius: var(--radius); border: 1px solid var(--border); 
    margin-bottom: 40px; box-shadow: var(--shadow-sm);
}

.button, .woocommerce-button, button[type="submit"] {
    appearance: none; background: var(--dark); color: #fff !important; 
    padding: 14px 30px; border-radius: var(--radius); border: none;
    font-weight: 700; cursor: pointer; transition: 0.2s; text-decoration: none;
    display: inline-block;
}
.button:hover { background: var(--primary); transform: scale(1.02); }

/* --- 8. FOOTER REFINEMENT --- */
.footer-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: inherit; text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }

/* --- 9. WORDPRESS CORE COMPATIBILITY --- */
.aligncenter { display: block; margin: 20px auto; }
.wp-block-image { margin-bottom: 2rem; }
.wp-block-image img { border-radius: var(--radius); max-width: 100%; height: auto; }