/*
Theme Name: Simple B/W Dark Theme
Description: A mobile-first, black and white dark theme inspired by Yahoo mobile layout
Version: 1.0
Author: You
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Inter provides the clean "Yahoo" look, with system fallbacks for instant mobile loading */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Header */
.site-header {
    max-width: 900px;
    margin: 0 auto;
    background-color: #000000;
    border-bottom: 1px solid #333333;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* For absolute centering of title */
}

/* Burger Menu */
.burger-menu {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 35px;
    z-index: 2; /* Keep above title */
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Site Title */
.site-title {
    font-size: 1.5rem;
    font-weight: 700; /* Inter looks great in bold */
    color: #ffffff;
    text-align: center;
    margin: 0;
    
    /* Perfect centering trick */
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none; 
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    pointer-events: auto; /* Makes the link clickable again */
}

/* Navigation Menu */
.nav-menu {
    background-color: #0a0a0a;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    border-right: 1px solid #333333;
    transition: left 0.3s ease;
    z-index: 200;
    overflow-y: auto;
    padding-top: 4rem;
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu ul li {
    border-bottom: 1px solid #222222;
}

.nav-menu ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-menu ul li a:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 150;
}

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

/* Content */
.site-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Posts & Pages */
.post, .page-content {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333333;
}

.post:last-child, .page-content {
    border-bottom: none;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
}

.post-meta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888888;
    margin-bottom: 1rem;
    text-align: center;
}

.post-excerpt,
.post-content,
.page-body {
    color: #cccccc;
    margin-bottom: 1rem;
}

.post-content img, .page-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.read-more:hover {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
}

/* Footer */
.site-footer {
    max-width: 900px;
    margin: 2rem auto 0;
    background-color: #000000;
    border-top: 1px solid #333333;
    padding: 2rem 1rem;
    text-align: center;
    color: #888888;
    font-size: 0.875rem;
}

/* Desktop - Same layout, just slightly wider padding */
@media (min-width: 768px) {
    .site-header,
    .site-content,
    .site-footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .burger-menu {
        width: 35px;
        height: 28px;
    }
}