/* Vision Pro Minimalist Theme (v2.2) */
@import url('vision-palette.css');

:root {
    /* Refined Vision Pro Variables */
    --card-bg: rgba(255, 255, 255, 0.95); /* Nearly opaque for readability */
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 10px 40px -10px rgba(0, 60, 20, 0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
    --hero-shadow: 0 20px 60px -15px rgba(0, 168, 107, 0.25);
    
    /* Typography Overrides */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: #F2F4F2 !important;
    background-image: radial-gradient(circle at top right, rgba(200, 255, 200, 0.3), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(200, 230, 255, 0.3), transparent 40%);
}

/* --- 1. DOUBLE LAYER ARCHITECTURE (Desktop) --- */

/* Layer 1: The Hero Title "Floating Sheet" */
.entry-header, .page-header {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px !important;
    border-radius: 32px !important;
    margin: 40px auto 20px auto !important;
    max-width: 900px !important;
    box-shadow: var(--hero-shadow) !important;
    border: 1px solid white !important;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

/* Layer 2: The Reading Content "Deep Card" */
.entry-content, .post-content {
    background: #FFFFFF !important;
    padding: 60px !important;
    border-radius: 32px !important;
    margin: 0 auto 60px auto !important;
    max-width: 900px !important;
    box-shadow: var(--card-shadow) !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
    color: #2A332A !important;
    position: relative;
    overflow: hidden; /* For liquid effect */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- LIQUID GLASS HOVER (Ultra-Clear Transparent Effect) --- */
/* When hovering, the card becomes "Invisible Liquid Glass" */
.entry-content:hover, .post-content:hover {
    transform: scale(1.02);
    
    /* The "True Liquid" Look - almost clear */
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    ) !important;
    
    backdrop-filter: blur(12px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(200%) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2) !important; /* Internal gloss */
        
    color: #000000 !important; /* Force Solid Black Text */
    z-index: 100 relative;
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="14" fill="rgba(80, 200, 120, 0.6)" stroke="white" stroke-width="2"/></svg>') 16 16, auto; /* Optional Green Circle Cursor */
}

/* Ensure text remains legible and sharp black on glass */
.entry-content:hover *, .post-content:hover * {
    color: #000000 !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.8); /* Halo to read on glass */
}

/* --- SOCIAL DOCK (Liquid Glass Widget) --- */

#antu-social-dock {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    padding: 20px 12px;
    border-radius: 50px; /* Pill shape container */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.antu-dock-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #1A3300 !important; /* Deep Green Text */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.antu-dock-btn:hover {
    transform: scale(1.2);
    color: var(--green-neon) !important;
}

.antu-dock-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.antu-dock-btn .count {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Like Animation */
.antu-dock-btn.liked svg {
    animation: heartBeat 0.4s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile: Bottom Bar Dock */
@media screen and (max-width: 768px) {
    #antu-social-dock {
        top: auto;
        bottom: 30px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row; /* Horizontal */
        width: auto;
        padding: 12px 30px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.85); /* More visible on mobile */
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
}


/* --- MOBILE UNIFICATION (Text Cutoff Fix) --- */
@media screen and (max-width: 768px) {
    body {
        background: #FFFFFF !important;
        overflow-x: hidden !important; /* Prevent body scroll */
    }

    /* Merge Layers & Fix Text Overflow */
    .entry-header, .page-header, 
    .entry-content, .post-content,
    .post, .page, .card {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important; /* Force viewport width */
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 20px 15px !important; /* Reduced padding for more text space */
        border: none !important;
        background: transparent !important;
        
        /* CRITICAL FIX FOR CUTOFF TEXT */
        overflow: visible !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .entry-content { padding-top: 10px !important; }

    /* Adjust Typography for Mobile fit */
    h1.entry-title, h1 {
        font-size: 2.2rem !important; /* Adjusted for mobile width */
        line-height: 1.15 !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
}

/* --- 2. MASSIVE TYPOGRAPHY (50 Shades Style) --- */

h1.entry-title, h1 {
    font-size: 3.8rem !important; /* Huge */
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--green-soil-deep) !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, var(--green-soil-deep) 0%, var(--green-teal-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.4rem !important;
    margin-top: 2.5em !important;
    margin-bottom: 1em !important;
    font-weight: 600 !important;
    color: var(--green-forest) !important;
    position: relative;
    display: inline-block;
}

/* AI Topics Highlight */
h3 {
    font-size: 1.8rem !important;
    color: var(--green-jade) !important;
    font-weight: 500 !important;
}

/* --- 3. CLEAN & MINIMALIST ELEMENTS --- */

/* Meta Info (Date, Author) */
.entry-meta {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--green-sage) !important;
    margin-bottom: 0 !important;
}

/* Buttons: Minimalist Pills */
button, input[type="submit"], .wp-block-button__link {
    background: var(--green-emerald) !important;
    color: white !important;
    border-radius: 100px !important;
    padding: 14px 32px !important;
    box-shadow: 0 4px 12px rgba(80, 200, 120, 0.3) !important;
    border: none !important;
    font-weight: 600 !important;
    transition: transform 0.2s ease;
}
button:hover { transform: scale(1.04); }

/* Images: Floating */
.entry-content img, .wp-block-image img {
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
    margin: 40px 0 !important;
}

/* Links */
a { color: var(--green-jade); text-decoration-thickness: 2px; }
a:hover { color: var(--green-neon); background: var(--green-soil-deep); color: white; border-radius: 4px; padding: 2px 6px; text-decoration: none; }
