/* Dev Logs Specific Styles - Modern Design */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dev-logs-container {
    height: 100vh;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    color: #e0e0e0;
    display: flex;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.dev-logs-sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #1f1f1f, #1a1a1a);
    padding: 30px 20px;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.dev-logs-sidebar h2 {
    color: #c4a86f;
    font-size: 20px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(196, 168, 111, 0.2);
}

.log-nav-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6), rgba(30, 30, 30, 0.6));
    border: 1px solid rgba(74, 74, 74, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    backdrop-filter: blur(10px);
}

.log-nav-item:hover {
    background: linear-gradient(135deg, rgba(53, 53, 53, 0.8), rgba(42, 42, 42, 0.8));
    border-color: rgba(90, 138, 90, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.log-nav-item.active {
    background: linear-gradient(135deg, rgba(90, 138, 90, 0.2), rgba(60, 100, 60, 0.2));
    border-color: rgba(90, 138, 90, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(90, 138, 90, 0.2);
}

.log-nav-item .log-date {
    font-size: 11px;
    color: #a0a0a0;
    margin-top: 6px;
    opacity: 0.8;
}

.dev-logs-content {
    flex: 1;
    padding: 50px 60px;
    margin: 0 auto;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.log-entry {
    margin-bottom: 80px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.4), rgba(30, 30, 30, 0.4));
    border-radius: 16px;
    border: 1px solid rgba(74, 74, 74, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.log-entry:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(90, 138, 90, 0.2);
}

.log-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(196, 168, 111, 0.2);
}

.log-title {
    font-size: 32px;
    color: #c4a86f;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.log-date {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.log-content {
    line-height: 1.8;
    font-size: 16px;
    color: #d0d0d0;
}

.log-content h3 {
    color: #c4a86f;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 168, 111, 0.15);
    letter-spacing: -0.3px;
}

.log-content h4 {
    color: #d4c5a0;
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 600;
}

.log-content ul, .log-content ol {
    margin: 20px 0;
    padding-left: 35px;
}

.log-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.log-content p {
    margin-bottom: 18px;
}

/* Link Styling - Enhanced Readability */
.log-content a {
    color: #7db3d3;
    text-decoration: underline;
    text-decoration-color: rgba(125, 179, 211, 0.4);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.log-content a:hover {
    color: #9bc5e0;
    text-decoration-color: rgba(155, 197, 224, 0.8);
    text-decoration-thickness: 2px;
}

.log-content a:visited {
    color: #a88bc4;
    text-decoration-color: rgba(168, 139, 196, 0.4);
}

.log-content a:visited:hover {
    color: #b8a0d0;
    text-decoration-color: rgba(184, 160, 208, 0.8);
}

.log-content a:focus {
    outline: 2px solid rgba(125, 179, 211, 0.6);
    outline-offset: 2px;
    border-radius: 3px;
}

.log-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.5);
    border-left: 4px solid #c4a86f;
    border-radius: 6px;
    font-style: italic;
    color: #d0d0d0;
}

.log-content blockquote strong {
    color: #c4a86f;
    font-style: normal;
}

/* Highlighted callout block (e.g. beta note) */
.log-content blockquote.log-callout {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(196, 168, 111, 0.12), rgba(196, 168, 111, 0.06));
    border: 1px solid rgba(196, 168, 111, 0.35);
    border-radius: 8px;
    font-style: normal;
    color: #e0e0e0;
}

.log-content code {
    background: rgba(26, 26, 26, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #a0d0a0;
    border: 1px solid rgba(74, 74, 74, 0.3);
}

.log-content video {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
    border: 1px solid #444;
}

/* Dev log screenshots and media - fit within content */
.log-content .log-placeholder-media {
    margin: 24px 0;
    text-align: center;
}

.log-content .log-placeholder-media img,
.log-content .log-screenshot {
    max-width: min(100%, 900px);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(74, 74, 74, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c4a86f;
    text-decoration: none;
    margin-bottom: 40px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6), rgba(30, 30, 30, 0.6));
    border: 1px solid rgba(74, 74, 74, 0.3);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.8), rgba(42, 42, 42, 0.8));
    border-color: rgba(90, 138, 90, 0.5);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(58, 90, 58, 0.6), rgba(40, 70, 40, 0.6));
    color: #a0d0a0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    border: 1px solid rgba(90, 138, 90, 0.2);
    backdrop-filter: blur(5px);
}

/* Mobile Navbar */
.mobile-navbar {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(31, 31, 31, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 74, 74, 0.3);
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6), rgba(30, 30, 30, 0.6));
    border: 1px solid rgba(74, 74, 74, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    color: #c4a86f;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.8), rgba(42, 42, 42, 0.8));
    border-color: rgba(90, 138, 90, 0.5);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4a86f;
    text-decoration: none;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6), rgba(30, 30, 30, 0.6));
    border: 1px solid rgba(74, 74, 74, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    justify-content: center;
}

.mobile-back-link:hover {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.8), rgba(42, 42, 42, 0.8));
    border-color: rgba(90, 138, 90, 0.5);
}

.mobile-back-link svg {
    width: 16px;
    height: 16px;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 50;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .dev-logs-container {
        flex-direction: row;
        position: relative;
    }

    .mobile-navbar {
        display: flex;
    }

    .dev-logs-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        padding: 20px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 60;
        border-right: 2px solid rgba(74, 74, 74, 0.3);
    }

    .dev-logs-sidebar.mobile-open {
        left: 0;
    }

    .dev-logs-content {
        width: 100%;
        padding: 20px 20px 30px 20px;
        max-width: none;
        margin: 0;
    }

    .back-link {
        display: none;
    }

    .log-entry {
        padding: 25px;
        margin-bottom: 40px;
    }

    .log-title {
        font-size: 24px;
    }

    .log-content h3 {
        font-size: 20px;
    }
}
