/*
Theme Name: Hashe World
Theme URI: https://hasheworld.com
Author: Hashe Dev Team
Description: A high-fashion digital newsstand theme with clickable covers, IoT tools, and gamification.
Version: 1.2
Text Domain: hashe
*/

/* ==========================================================================
   1. MASTER VARIABLES & THEME SETTINGS
   ========================================================================== */
:root {
    /* Typography Stack */
    --font-glam: 'Syne', sans-serif;       
    --font-classic: 'Bodoni Moda', serif;  
    --font-practical: 'Inter', sans-serif; 
    --font-iot: 'Space Mono', monospace;   

    /* Global Brand */
    --color-black: #0a0a0a;
    --color-white: #ffffff;
    --color-grey-light: #f4f4f4;
    
    /* Category Colors */
    --cat-beauty-main: #96a989; 
    --cat-beauty-bg: #e8ede6;
    --cat-beauty-accent: #bcaaa4; 
    --cat-love-main: #a0522d;
    --cat-love-accent: #f5e6d3;
    --cat-pace-main: #1a237e;
    --cat-pace-bg: #f0f2f5;
    --cat-pace-accent: #cfd8dc;
    --cat-fashe-main: #2962ff; 
    --cat-fashe-accent: #ccff00; 

    /* Active Release Override */
    --cat-active-main: var(--color-black);
    --cat-active-accent: var(--cat-fashe-accent);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-practical);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for Mobile Nav */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-glam);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   3. CLICKABLE COVER ENGINE (HOMEPAGE HERO)
   ========================================================================== */
.cover-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Changed from height to min-height to allow scrolling */
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 10s ease;
}

.cover-section:hover .cover-image { transform: scale(1.05); }

.masthead {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    z-index: 20;
    color: var(--color-white);
    font-family: var(--font-classic);
    font-style: italic;
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.cover-grid {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    min-height: 100vh; /* Ensure grid stretches */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 20px;
}

/* Interactive Text Layers */
.cover-headline {
    position: relative;
    color: var(--color-white);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.cover-headline h2 {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

.cover-headline .deck {
    font-family: var(--font-classic);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-width: 300px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid var(--cat-fashe-accent);
}

.cover-headline:hover { transform: translateX(10px); }
.cover-headline:hover h2 { -webkit-text-stroke: 1px var(--cat-fashe-accent); color: transparent; }
.cover-headline:hover .deck { opacity: 1; transform: translateY(0); }

/* Grid Slots */
.pos-left-top { grid-column: 1; grid-row: 1; align-items: flex-start; }
.pos-left-mid { grid-column: 1; grid-row: 2; align-items: flex-start; }
.pos-right-mid { grid-column: 3; grid-row: 2; align-items: flex-end; text-align: right; }
.pos-btm-center { grid-column: 2; grid-row: 3; align-items: center; text-align: center; }

/* Ad Slot Container override */
.cover-ad-container { pointer-events: auto; }

/* Bottom Right Icons */
.pos-right-btm {
    position: absolute;
    bottom: 40px; right: 40px;
    z-index: 50;
    display: flex;
    gap: 12px;
}

.media-icon {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
}
.media-icon:hover { background: var(--color-white); color: var(--color-black); transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.media-icon svg { width: 20px; height: 20px; stroke-width: 2.5; }

/* ==========================================================================
   4. UI KIT & STICKERS
   ========================================================================== */
.sticker-hype {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--cat-fashe-accent); color: var(--color-black);
    display: flex; align-items: center; justify-content: center; text-align: center;
    font-family: var(--font-glam); font-weight: 800; line-height: 1;
    transform: rotate(-15deg); box-shadow: 4px 4px 0px var(--color-black);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 
    0% { transform: rotate(-15deg) translateY(0px); } 
    50% { transform: rotate(-10deg) translateY(-10px); } 
    100% { transform: rotate(-15deg) translateY(0px); } 
}

.badge-beauty { border: 2px solid var(--cat-beauty-main); color: var(--cat-beauty-main); padding: 5px 10px; font-weight: bold; font-family: var(--font-iot); font-size: 0.8rem; }

.btn-editorial {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-glam);
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-editorial:hover { background: var(--cat-fashe-main); color: var(--color-white); }

/* ==========================================================================
   5. #HASHESET DASHBOARD
   ========================================================================== */
.dashboard-section {
    padding: 60px 40px;
    background: var(--cat-beauty-bg); 
    color: var(--color-black);
    border-top: 1px solid var(--color-black);
}

.dash-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 2px solid var(--cat-beauty-main); padding-bottom: 20px; }
.dash-title h2 { font-size: 3rem; color: var(--cat-beauty-main); }
.dash-title span { font-family: var(--font-classic); font-style: italic; font-size: 1.5rem; color: #666; }

.smart-objective {
    background: var(--color-white);
    border: 1px solid var(--color-black);
    padding: 20px;
    margin-bottom: 40px;
    font-family: var(--font-iot);
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}

.ai-badge { background: var(--color-black); color: var(--color-white); padding: 5px 10px; font-weight: bold; font-size: 0.8rem; }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar-card { background: var(--color-white); border: 1px solid #ccc; padding: 20px; transition: 0.3s; position: relative; height: 350px; display: flex; flex-direction: column; }
.pillar-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pillar-icon { font-size: 2rem; margin-bottom: 15px; color: var(--cat-beauty-main); }
.pillar-title { font-family: var(--font-glam); font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; }
.pillar-content { flex-grow: 1; font-size: 0.9rem; color: #555; }
.pillar-action { margin-top: auto; width: 100%; padding: 10px; background: var(--color-black); color: var(--color-white); border: none; font-family: var(--font-iot); cursor: pointer; text-transform: uppercase; font-size: 0.8rem; }
.pillar-action:hover { background: var(--cat-beauty-main); }

/* ==========================================================================
   6. ARTICLE LAYOUTS (SINGLE.PHP)
   ========================================================================== */
.header-overlay { position: relative; height: 80vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 80px; }
.header-overlay img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay-card { position: relative; z-index: 10; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(15px); padding: 40px; max-width: 600px; border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.2); text-align: center; }
.overlay-card h1 { font-size: 3rem; color: var(--color-black); margin-bottom: 10px; line-height: 1; }
.overlay-card .meta { font-family: var(--font-iot); color: #555; font-size: 0.8rem; margin-bottom: 20px; }

.header-split { display: flex; height: 70vh; margin-bottom: 80px; }
.split-image { flex: 1; position: relative; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; background: var(--color-black); color: var(--color-white); }
.split-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 0.9; color: var(--cat-fashe-accent); }
.split-content .deck { font-family: var(--font-practical); font-size: 1.2rem; margin-bottom: 40px; opacity: 0.8; }

/* ==========================================================================
   7. TYPOGRAPHY SUITE
   ========================================================================== */
.fancy-h2 { font-family: var(--font-glam); font-size: 2.5rem; border-bottom: 4px solid var(--color-black); margin-bottom: 30px; padding-bottom: 10px; text-transform: uppercase; letter-spacing: -1px; }
.fancy-h3 { font-family: var(--font-classic); font-style: italic; font-size: 2rem; margin-bottom: 20px; margin-top: 40px; position: relative; display: inline-block; z-index: 1; }
.fancy-h3::after { content: ''; position: absolute; left: 0; bottom: 5px; width: 100%; height: 10px; background: var(--cat-beauty-main); opacity: 0.4; z-index: -1; }
.quote-glam { font-family: var(--font-classic); font-size: 2.5rem; line-height: 1.2; text-align: center; margin: 60px 0; padding: 0 40px; font-style: italic; position: relative; color: var(--color-black); }
.quote-glam::before { content: '“'; font-size: 10rem; position: absolute; top: -60px; left: 0; opacity: 0.05; font-family: var(--font-glam); color: var(--color-black); }

/* ==========================================================================
   8. ARCHIVE BOOKSHELF
   ========================================================================== */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 60px 40px; padding: 40px; background: var(--color-grey-light); }
.issue-card { position: relative; aspect-ratio: 3/4; perspective: 1000px; cursor: pointer; }
.issue-cover { width: 100%; height: 100%; object-fit: cover; box-shadow: 5px 10px 20px rgba(0,0,0,0.3); transition: transform 0.4s ease; position: relative; z-index: 2; }
.issue-toc { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--color-white); padding: 20px; transform: translateY(20px); opacity: 0; transition: all 0.3s ease; z-index: 3; border-top: 4px solid var(--cat-fashe-accent); box-shadow: 0 -10px 20px rgba(0,0,0,0.1); }
.issue-card:hover .issue-cover { transform: translateY(-40px) scale(1.02); }
.issue-card:hover .issue-toc { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   9. MOBILE APP BAR
   ========================================================================== */
.mobile-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; display: flex; gap: 30px; align-items: center; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.3); width: max-content; }
.nav-item { color: #666; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; font-size: 0.7rem; font-family: var(--font-iot); transition: 0.2s; }
.nav-item.active { color: var(--color-white); }
.nav-item:hover { color: var(--cat-fashe-accent); }
.nav-item svg { width: 24px; height: 24px; margin-bottom: 2px; stroke: currentColor; }
.nav-fab { background: var(--cat-fashe-accent); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-black); margin-top: -30px; box-shadow: 0 5px 15px rgba(204, 255, 0, 0.4); transition: 0.3s; }
.nav-fab svg { width: 24px; height: 24px; stroke: currentColor; }
.nav-fab:hover { transform: translateY(-5px); }

/* ==========================================================================
   10. FOOTER & CREDITS
   ========================================================================== */
.site-footer { background: var(--color-black); color: var(--color-white); padding: 60px 40px; font-family: var(--font-practical); position: relative; z-index: 10; }
.credits-cloud { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; margin-top: 30px; padding-top: 30px; border-top: 1px solid #333; }
.credit-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #aaa; }
.credit-item:hover { color: var(--color-white); }
.credit-role { font-family: var(--font-classic); font-style: italic; color: #666; font-weight: bold; margin-right: 5px; }

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .cover-grid { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 100px; gap: 20px; }
    .masthead { font-size: 15vw; position: relative; mix-blend-mode: normal; margin-bottom: 20px; }
    .pos-right-btm { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); right: auto; }
    .pillars-grid { grid-template-columns: 1fr; }
    .dash-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .smart-objective { flex-direction: column; align-items: flex-start; }
    .header-split { flex-direction: column; height: auto; }
    .split-image { height: 300px; }
    .vault-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. LOOKBOOK STYLES
   ========================================================================== */
.lookbook-pin { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); z-index: 10; cursor: pointer; }
.pin-dot { width: 100%; height: 100%; background: white; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,0.1); position: relative; transition: 0.3s; }
.pin-dot::after { content: ''; position: absolute; top:50%; left:50%; transform:translate(-50%, -50%); width: 8px; height: 8px; background: var(--color-black); border-radius:50%; }
.lookbook-pin:hover .pin-dot { transform: scale(1.2); }
.pin-card { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(10px); width: 200px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); opacity: 0; pointer-events: none; transition: 0.3s; text-align: left; }
.lookbook-pin:hover .pin-card { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mosaic-grid { column-count: 3; column-gap: 20px; }
.mosaic-item { break-inside: avoid; margin-bottom: 20px; position: relative; cursor: pointer; }
.mosaic-item img { width: 100%; display: block; }
.mosaic-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.mosaic-item:hover .mosaic-overlay { opacity: 1; }
@media (max-width: 768px) {
    .mosaic-grid { column-count: 1; }
}

/* ==========================================================================
   13. WORDPRESS MENU FIXES (HEADER)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The actual Desktop Menu List - THIS FIXES THE VERTICAL STACK */
.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; 
    gap: 30px;
}

.desktop-nav ul li {
    position: relative;
    margin-bottom: 0; /* Remove default WP margins */
}

.desktop-nav ul li a {
    font-family: var(--font-iot);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-black);
    text-decoration: none;
    transition: 0.2s;
    display: block; /* Ensure clickable area */
}

/* Hover effects */
.desktop-nav ul li a:hover {
    color: var(--cat-fashe-main);
    text-decoration: underline;
}

/* Header Utility (Search / Wallet) Fix */
.header-utility {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Transparent Header (Homepage) overrides */
.header-transparent {
    background: transparent;
    color: var(--color-white);
}
.header-transparent .desktop-nav ul li a {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Readable on image */
}
.header-transparent .util-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-iot);
    font-size: 0.8rem; 
    text-transform: uppercase;
}

/* Sticky Header (Inner Pages) overrides */
.header-sticky {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 40px;
}