/* Theme variables */
[data-bs-theme="light"] { --bg-body: #f8f9fa; }
[data-bs-theme="dark"] { --bg-body: #212529; }

body {
    background-color: var(--bg-body);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content wrapper to push footer down */
#main-content {
    flex: 1;
}

/* Card & Image utilities */
.card-img-top { height: 200px; object-fit: cover; }
.post-cover-detail { max-height: 400px; width: 100%; object-fit: cover; }
.hover-shadow:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.transition-all { transition: all 0.3s ease; }

/* Navbar Beautification */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Ensure background is slightly transparent for blur */
    background-color: rgba(var(--bs-tertiary-bg-rgb), 0.9) !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .navbar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}
.navbar-brand:hover {
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Footer Beautification */
footer {
    background-color: var(--bs-tertiary-bg);
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.social-icon-link {
    font-size: 1.25rem;
    color: var(--bs-secondary);
    transition: all 0.2s;
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .social-icon-link {
    background-color: rgba(255,255,255,0.05);
}

.social-icon-link:hover {
    color: #fff;
    background-color: var(--bs-primary);
    transform: translateY(-3px);
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    padding-left: 0;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: var(--bs-secondary);
    transition: all 0.2s;
    display: block;
    margin-bottom: 0.6rem;
}

.footer-links a:hover {
    color: var(--bs-primary);
    padding-left: 5px;
}

.footer-copyright {
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
}
[data-bs-theme="dark"] .footer-copyright {
    border-top-color: rgba(255,255,255,0.1);
}
