/* THEME: {ThemeName}
   PALETTE: {PaletteName}
*/

:root {
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #06b6d4;
    --primary-light: #cffafe;
    --accent: #0891b2;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
}

.site-nav { 
    background: color-mix(in srgb, var(--bg-card) 90%, transparent); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border); padding: 15px 0; 
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-box { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon {
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: #fff !important;
    width: 30px; height: 30px; border-radius: 12px !important; 
    font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
                box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.logo-text { color: var(--text-main) !important; font-weight: 600; font-size: 21px; letter-spacing: 0; font-style: normal !important;  }

.nav-menu { 
    display: flex; list-style: none; gap: 10px; justify-content: flex-end; 
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; scrollbar-width: none;
    padding-bottom: 5px; /* So hover doesn't get clipped */
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu li a {
    position: relative;
    color: var(--text-main); font-weight: 600; font-size: 14px; padding: 8px 15px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none; white-space: nowrap; border-radius: 6px; 
}
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background-color: var(--primary); transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-menu li a:hover::after { width: 80%; }
.nav-menu li a:hover { color: var(--primary);  }

.btn-read {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 15px; padding: 12px 28px;
    background: var(--primary); color: #fff !important; font-size: 14px; font-weight: 700; 
    border: none; border-radius: var(--radius); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; 
}
.btn-read:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 25px -5px color-mix(in srgb, var(--primary) 40%, transparent);  }

.tile-item { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow) !important; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); background: var(--bg-card); }
.tile-item:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; border-color: var(--primary) !important; }
.tile-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important; padding: 25px !important; border-bottom: none; }
.tile-overlay h3 { font-weight: 800; font-size: 1.4rem; color: #ffffff !important;  }

.card { background: var(--bg-card); border: 1px solid var(--border) !important; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); border-color: var(--primary) !important; }
.card-body h4 { font-weight: 800; font-size: 1.25rem; color: var(--text-main); margin-bottom: 12px;  }

#sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: none; }
#sidebar h3 { color: var(--primary); padding: 0 0 10px 0; font-weight: 800; margin: 0 0 20px 0; border-bottom: 2px solid var(--primary-light); font-size: 16px;  }

#view-post article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 50px; box-shadow: none; }
#p-title { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-main); margin-bottom: 25px; line-height: 1.2;   }
#view-post img { border-radius: var(--radius) !important; margin-bottom: 30px;  }
.post-content { font-size: 1.1rem; color: var(--text-main); line-height: 1.8; }
.post-content h2, .post-content h3 { color: var(--primary); font-weight: 800; margin-top: 2em; margin-bottom: 1em;  }

.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px 0; transition: 0.3s; border-radius: 3px; }

@media (max-width: 768px) {
    .nav-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
    .logo-box { order: 1; flex: 1; min-width: 0; }
    .logo-icon { width: 26px !important; height: 26px !important; font-size: 14px !important; flex-shrink: 0; }
    .logo-text { font-size: 16px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .menu-toggle { order: 2; display: block; }
    
    .nav-menu { 
        display: none !important; 
        order: 3; 
        width: 100%; 
        flex-direction: column; 
        align-items: stretch; 
        background: #0f172a !important; 
        border-radius: 8px;
        padding: 10px 0;
        margin-top: 10px;
    }
    .nav-menu.active { display: flex !important; }
    .nav-menu li a { color: #ffffff !important; display: block; width: 100%; text-align: center; padding: 12px; }
}

/* ========================================= */
/* PREMIUM UI/UX ENHANCEMENTS                */
/* ========================================= */

/* 1. Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; border: 2px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* 2. Reading Progress Bar */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; 
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 0%; z-index: 99999; transition: width 0.1s ease-out;
}

/* 3. Aurora Mesh Background */
body::after {
    content: ""; position: fixed; top: -200px; right: -150px; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    opacity: 0.4; filter: blur(80px); z-index: -1; 
    animation: aurora-float 15s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes aurora-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 100px) scale(1.2); }
}

/* 4. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Button Micro-animations */
.btn-read-full {
    display: inline-flex !important; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-read-full::after {
    content: "\2192";
    opacity: 0; transform: translateX(-10px); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-family: Arial, sans-serif;
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
}
.btn-read-full:hover::after {
    opacity: 1; transform: translateX(0);
    max-width: 20px;
    margin-left: 8px;
}

/* 6. Skeleton Loader */
.skeleton-box {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-main) 50%, var(--bg-card) 75%);
        animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
    min-height: 200px;
}
@keyframes skeleton-loading {
    0% {  }
    100% {  }
}

