/* ========================================= */
/*            FONTS & IMPORTS                */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================= */
/*            GLOBAL SETTINGS                */
/* ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #101010 !important;
    background-image: url('https://i.postimg.cc/Zn2Sn0Wm/site.webp') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    color: #C4CDD9 !important;
    font-family: 'Montserrat', sans-serif !important;
    
    /* Sticky Footer Setup */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b111a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3fa9f5; }

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-top: 0;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ========================================= */
/*               NAVBAR                      */
/* ========================================= */

.top-nav-bar {
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    background: transparent;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.nav-logo {
    height: 60px;
    width: auto;
    filter: none !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Simple Clean Buttons */
.btn-back-home, 
.nav-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; 
    color: #e2e8f0 !important;
    padding: 8px 12px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: capitalize; 
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.btn-back-home i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.2s ease;
}

.btn-back-home:hover {
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-back-home:hover i {
    color: #fff;
}

/* ========================================= */
/*            TAGS (LORE BADGE)              */
/* ========================================= */

.tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.tag-badge.lore {
    border-color: rgba(63, 169, 245, 0.3);
}

.tag-badge.lore i {
    color: #3fa9f5;
    margin-right: 8px;
}

.tag-badge:hover {
    background: rgba(63, 169, 245, 0.15);
    border-color: #3fa9f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(63, 169, 245, 0.2);
}

/* ========================================= */
/*             PAGE HEADERS                  */
/* ========================================= */

.page-header-section {
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.main-page-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1;
}

/* ========================================= */
/*      SINGLE POST (GLASSY EFFECT)          */
/* ========================================= */

.single-post-container {
    background: rgba(13, 22, 35, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    margin-left: 60px;
    margin-right: 60px;
}

.single-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.single-header-content {
    padding: 1rem 3rem;
    margin-top: -40px;
    z-index: 2;
}

.single-title {
    font-size: 3rem;
    color: #fff !important;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

/* Meta Data Row */
.meta-row-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.author-section { display: flex; align-items: center; }

/* === CURVED SQUARE AVATAR === */
.author-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 5px; /* Curved Edges */
    border: 1px solid #3fa9f5;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.author-info { display: flex; flex-direction: column; }
.author-name { color: #fff; font-weight: 700; font-size: 1.2rem; }
.rank-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 4px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.post-stats { display: flex; align-items: center; gap: 20px; }
.stat-pill {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}
.stat-pill i { color: #3fa9f5; margin-right: 8px; }

.single-body {
    padding: 0 3rem 4rem 3rem;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-body p { margin-bottom: 1.5rem; }

/* ========================================= */
/*      HOME GRID CARDS (GLASSY)             */
/* ========================================= */

.home-grid-card {
    display: flex;
    flex-direction: column;
    background: rgba(19, 27, 41, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.home-grid-card:hover {
    transform: translateY(-8px);
    border-color: #3fa9f5;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(19, 27, 41, 0.85);
}

.grid-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-grid-card:hover .grid-img { transform: scale(1.1); }

.grid-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-title {
    color: #fff !important;
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.25;
}

.home-grid-card:hover .grid-title { color: #3fa9f5 !important; }

.grid-excerpt {
    color: #94a3b8;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.grid-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ========================================= */
/*      SIDEBAR STYLES (GLASSY)              */
/* ========================================= */

.sidebar-list-container {
    background: rgba(19, 27, 41, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.sidebar-post-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}

.sidebar-post-item:hover { background-color: rgba(63, 169, 245, 0.15); }

.sidebar-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.sidebar-title {
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sidebar-date { color: #64748b; font-size: 0.75rem; font-weight: 600; }

/* ========================================= */
/*            FOOTER (GLASSY & STICKY)       */
/* ========================================= */

.footer-spacer {
    flex: 1; /* Pushes bottom bar to bottom */
}

.bottom-bar {
    width: 100%;
    /* Glassy Background */
    background: rgba(13, 22, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 40px 0;
    margin-top: auto; 
    position: relative;
    z-index: 50;
    text-align: left;
}

.bottom-bar .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-left: 60px;
    padding-right: 60px;
}

.footer-text-group p {
    margin: 0;
    line-height: 1.6;
}

.footer-disclaimer {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-email {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.copyright-box {
    display: inline-flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: border-color 0.3s ease;
}

.copyright-box:hover {
    border-color: #3fa9f5;
}

.copyright-box i {
    margin-right: 8px;
    color: #94a3b8;
}

/* ========================================= */
/*            RESPONSIVE                     */
/* ========================================= */

@media (max-width: 992px) {
    .top-nav-bar { padding: 20px 30px; }
    .page-header-section { padding-left: 30px; margin-top: 2rem; }
    .main-page-title { font-size: 3rem; }
    .single-post-container { margin: 0 15px 3rem 15px; }
    .single-header-content, .single-body { padding: 1.5rem; }
    .meta-row-wrapper { flex-direction: column; align-items: flex-start; gap: 15px; }
    .bottom-bar .container { padding-left: 20px; padding-right: 20px; }
}