/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Waiting+for+the+Sunrise&family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #505050;
    --text-body: #f0f0f0;
    --text-muted: #dcdcdc;
    --text-header: #DBB94F;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.navbar-brand,
.handwriting {
    font-family: 'Waiting for the Sunrise', cursive;
    color: var(--text-header);
    letter-spacing: 0.5px;
}

a {
    color: var(--text-header);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
}

.hover-white:hover {
    color: #fff !important;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(0, 0, 0, 0.25);
    /* Darker, subtle */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Minimal border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: var(--text-body);
}

.glass-nav {
    background: rgba(80, 80, 80, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-header {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-gradient {
    /* Keeping for legacy, but overriding color */
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-header);
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Utility Overrides for Dark Mode */
.text-primary {
    color: var(--text-header) !important;
}

.text-dark {
    color: var(--text-body) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.card {
    background-color: transparent;
}

.btn-primary {
    background-color: var(--text-header);
    border-color: var(--text-header);
    color: #333;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #000;
}

.dropdown-menu {
    background-color: #404040;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: var(--text-body);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Lightbox - Keep mostly same but ensure z-index */
.lightbox {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(20, 20, 20, 0.75);
    /* More transparent for glossy effect */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(20px);
    /* Heavy blur for glossy/glass effect */
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2002;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2002;
    transition: 0.3s;
    opacity: 0.7;
}

.lightbox-close:hover {
    opacity: 1;
    color: #fff;
    text-decoration: none;
}

/* Animations */
.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.transition-hover {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Images */
.post-content img,
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 1rem 0;
}

.image-card:hover .image-actions {
    display: flex !important;
}

/* Responsive Embeds (YouTube, etc.) */
.post-content iframe,
.ql-editor iframe {
    width: 100% !important;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sticky Post */
.sticky-post .sticky-date {
    display: none;
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: rgba(219, 185, 79, 0.9);
    /* #dbb94f with opacity */
    color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-back-btn:hover {
    background-color: #dbb94f;
    transform: translateY(-5px);
    color: #000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}