/* Modern Blog Styling - Warm Earth Tones */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm Earth Palette */
    --charcoal: #383931;         /* Deep charcoal gray */
    --rust: #a0552b;             /* Rust/terracotta */
    --olive: #646756;            /* Olive green-gray */
    --stone: #907e68;            /* Warm stone */
    --sand: #ccbcad;             /* Sandy beige */
    
    /* Derived Colors */
    --charcoal-light: #4a4a3f;
    --rust-dark: #8a4623;
    --rust-light: #b86b3f;
    --stone-light: #a89580;
    --sand-light: #ddd0c4;
    --sand-dark: #b5a899;
    
    /* Semantic Colors */
    --primary: var(--rust);
    --primary-dark: var(--charcoal);
    --accent: var(--stone);
    --danger: #a0552b;
    --danger-dark: #8a4623;
    --bg-dark: var(--charcoal);
    --bg-light: var(--sand);
    --text-dark: var(--charcoal);
    --text-light: var(--sand);
    --text-medium: var(--olive);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(56, 57, 49, 0.2);
    --shadow: 0 4px 6px -1px rgba(56, 57, 49, 0.3), 0 2px 4px -1px rgba(56, 57, 49, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(56, 57, 49, 0.4), 0 4px 6px -2px rgba(56, 57, 49, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(56, 57, 49, 0.5), 0 10px 10px -5px rgba(56, 57, 49, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--olive) 0%, var(--stone) 50%, var(--olive) 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--olive) 50%, var(--charcoal) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--rust);
    padding: 30px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(56, 57, 49, 0.5);
}

header h1 {
    color: var(--sand);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

header p {
    color: var(--sand-light);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Header Navigation */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-content {
    flex: 1;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    color: var(--sand-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.header-nav a:hover {
    color: var(--sand);
    background: rgba(160, 85, 43, 0.2);
}

.header-nav a.active {
    color: var(--rust-light);
    background: rgba(160, 85, 43, 0.15);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--sand);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--sand);
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--rust) 0%, var(--rust-dark) 100%);
    color: var(--sand);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--rust-light) 0%, var(--rust) 100%);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--sand);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--olive) 0%, var(--charcoal) 100%);
    color: var(--sand);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 8px;
}

/* Post List Styles */
.post {
    background: var(--sand);
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sand-dark);
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rust) 0%, var(--stone) 100%);
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--stone);
}

.post h2 {
    color: var(--charcoal);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-meta {
    color: var(--olive);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
/*
.post-meta::before {
    content: '🌾';
    font-size: 16px;
}
*/
.post-meta strong {
    color: var(--rust);
}

.post-excerpt {
    margin-bottom: 20px;
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.7;
}

/* Single Post View */
.post-container {
    background: var(--sand);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sand-dark);
}

.post-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--rust) 0%, var(--stone) 100%);
}

.post-container h1 {
    color: var(--charcoal);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-container .post-meta {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--sand-dark);
    margin-bottom: 32px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: var(--charcoal);
    margin-bottom: 40px;
}

/* Form Styles */
.form-container {
    background: var(--sand);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sand-dark);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--rust) 0%, var(--stone) 100%);
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--charcoal);
    font-size: 15px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--sand-dark);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--charcoal);
    background: white;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: var(--olive);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(160, 85, 43, 0.1);
    background: white;
}

textarea {
    min-height: 250px;
    resize: vertical;
}

/* Empty State */
.empty-state {
    background: var(--sand);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
    border: 1px solid var(--sand-dark);
}

.empty-state::before {
    content: '🌾';
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state p {
    color: var(--olive);
    font-size: 18px;
}

/* Action Bar */
.action-bar {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Links */
a:not(.btn) {
    color: var(--rust);
    transition: color 0.2s ease;
}

a:not(.btn):hover {
    color: var(--rust-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post,
.post-container,
.form-container {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    /* Mobile Header */
    header {
        padding: 20px 0;
    }
    
    .header-wrapper {
        flex-wrap: wrap;
        position: relative;
    }
    
    .header-content {
        flex: 1 1 100%;
        padding-right: 50px;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
    
    header p {
        font-size: 0.95rem;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 0;
        top: 0;
    }
    
    /* Mobile Navigation */
    .header-nav {
        display: none !important;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 20px;
        background: rgba(56, 57, 49, 0.95);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }
    
    .header-nav.active {
        display: flex !important;
    }
    
    .header-nav a {
        padding: 16px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(204, 188, 173, 0.1);
        text-align: left;
    }
    
    .header-nav a:last-child {
        border-bottom: none;
    }
    
    .header-nav a:hover {
        background: rgba(160, 85, 43, 0.15);
    }
    
    /* Posts and Forms */
    .post,
    .post-container,
    .form-container {
        padding: 24px;
    }
    
    .post h2 {
        font-size: 1.5rem;
    }
    
    .post-container h1 {
        font-size: 2rem;
    }
    
    .btn-small {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.25rem;
    }
    
    header p {
        font-size: 0.85rem;
    }
    
    .post,
    .post-container,
    .form-container {
        padding: 20px;
    }
    
    .post h2 {
        font-size: 1.3rem;
    }
    
    .post-container h1 {
        font-size: 1.75rem;
    }
}
