/*
Theme Name: Madara Liquid Final
Author: Madara Dev
Description: Fixed Layout, Rounded Corners, Mobile App Fit.
Version: 60.0
*/

/* 1. BASE */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0; padding: 0;
    background-color: #f0f2f5;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
    color: #1c1c1e;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    padding-top: 80px;
}

img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
a { text-decoration: none; color: inherit; }

/* 2. LIQUID GLASS */
.liquid-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 3. HEADER */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 75px;
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-group { display: flex; align-items: center; gap: 20px; }
.logo-img { height: 42px; width: auto; display: block; }

.desktop-nav { display: flex; gap: 10px; }
.nav-pill {
    font-size: 13px; font-weight: 700; color: #000;
    padding: 10px 20px; border-radius: 30px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}
.nav-pill:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }

/* MOBILE TOGGLE (The Fix) */
.mob-toggle {
    display: none;
    position: absolute; right: 15px;
    z-index: 100000; /* FORCE ON TOP */
    
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px; border-radius: 12px;
    cursor: pointer;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
}
.mob-toggle svg { width: 26px; height: 26px; stroke: #000; }

/* MOBILE DRAWER */
.mob-drawer {
    display: none;
    position: fixed; top: 85px; left: 10px; right: 10px;
    border-radius: 24px; padding: 15px; z-index: 99998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.mob-drawer.active { display: block; }
.mob-link {
    display: block; padding: 15px; text-align: center;
    font-weight: 700; color: #000; border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 4. CONTENT CARD (The Rounded Fix) */
.app-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    min-height: 80vh;
}

.content-card {
    border-radius: 35px !important; /* MATCH TERMS PAGE */
    padding: 40px;
    
    /* CRITICAL FIX: This cuts off the square corners */
    overflow: hidden !important; 
    
    /* Ensure Glass applies correctly */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

h1 { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 10px; margin-top: 0; }
.meta-info { font-size: 13px; color: #555; text-align: center; display: block; margin-bottom: 30px; }

/* ENTRY CONTENT */
.entry-content p { margin-bottom: 20px; color: #1c1c1e; font-size: 17px; }
.entry-content img { 
    margin: 30px auto; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 16px; 
}
.entry-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }

/* 5. FOOTER */
.site-footer {
    display: flex; flex-direction: column; align-items: center;
    padding: 60px 20px; margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.footer-logo img { height: 40px; width: auto; margin-bottom: 25px; filter: grayscale(100%); opacity: 0.8; }
.glass-bubble {
    background: rgba(255,255,255,0.3); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 20px 30px; border-radius: 20px;
    text-align: center; max-width: 600px; margin-bottom: 30px;
    font-size: 14px; color: #222; font-weight: 500;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.copyright { font-size: 12px; color: #444; }

/* MOBILE RESPONSIVE (Zero Spacing Fix) */
@media (max-width: 800px) {
    /* 1. FORCE HIDE DESKTOP MENU (Removes spilling text) */
    .desktop-nav { display: none !important; }
    
    /* 2. SHOW TOGGLE */
    .mob-toggle { display: flex !important; }
    
    /* 3. ZERO SPACING / APP FIT */
    .app-container {
        padding: 0 5px !important; /* Almost zero gap */
        margin-top: 20px !important;
        width: 100% !important;
    }
    
    .content-card {
        padding: 25px 20px !important;
        border-radius: 24px !important; /* Tighter for mobile */
    }
    
    /* 4. HEADER FIX */
    .site-header { justify-content: center !important; } 
    .header-group { gap: 0; width: 100%; justify-content: center; }
}