/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES - ENHANCED MONOCHROMATIC THEME ===== */
:root {
    /* Primary Colors - Black to Dark Gray */
    --primary-color: #000000;
    --primary-light: #333333;
    --primary-dark: #000000;
    
    /* Secondary Colors - Medium Gray */
    --secondary-color: #666666;
    --secondary-light: #808080;
    --secondary-dark: #4a4a4a;
    
    /* Accent Colors - Light Gray */
    --accent-color: #cccccc;
    --accent-light: #e6e6e6;
    --accent-dark: #999999;
    
    /* Supporting Colors */
    --tertiary-color: #404040;
    --quaternary-color: #737373;
    
    /* Status Colors */
    --success-color: #4a5d4a;
    --warning-color: #5d5d4a;
    --error-color: #5d4a4a;
    
    /* Neutral Colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #000000 0%, #404040 50%, #666666 100%);
    --gradient-secondary: linear-gradient(45deg, #cccccc 0%, #999999 100%);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #eeeeee 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    font-size: var(--font-size-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

.nav-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: var(--space-xs) var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-hero {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.btn-back {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== SEARCH BAR STYLES ===== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto var(--space-md);
}

.search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-lg) var(--space-sm) 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-result-item {
    padding: var(--space-sm);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    min-height: 60vh;
}

.hero-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: var(--radius-xl);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: -2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--tertiary-color), var(--quaternary-color));
    top: 40%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===== FORM STYLES ===== */
.create-post-section {
    padding: var(--space-xl) 0;
}

.form-container {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.character-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* ===== BLOG POSTS SECTION ===== */
.blog-posts-section {
    padding: var(--space-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title-container {
    flex: 1;
}

.section-header h3 {
    font-size: var(--font-size-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 300px;
}

.filter-options {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-options {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.sort-select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: var(--font-size-sm);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.post-card-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: var(--space-md);
}

.post-category {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.post-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.post-author {
    font-weight: 600;
    color: var(--primary-color);
}

.post-stats {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* ===== SINGLE POST STYLES ===== */
.single-post-section {
    padding: var(--space-xl) 0;
}

.single-post {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
}

.single-post-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.single-post-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.single-post-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-primary);
}

.single-post-content p {
    margin-bottom: var(--space-md);
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.comments-section h4 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-form {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
}

.comment {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--primary-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.comment-text {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.comment-time {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-secondary);
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    font-weight: 600;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--error-color);
    color: white;
}

.notification.info {
    background: var(--primary-color);
    color: white;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-lg) 0;
    }
    
    .hero-content h2 {
        font-size: var(--font-size-3xl);
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .section-controls {
        min-width: auto;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: var(--space-md);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .single-post {
        padding: var(--space-md);
    }
    
    .single-post-title {
        font-size: var(--font-size-2xl);
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .comments-section {
        padding: var(--space-md);
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .element-1 {
        width: 80px;
        height: 80px;
    }
    
    .element-2 {
        width: 60px;
        height: 60px;
    }
    
    .element-3 {
        width: 70px;
        height: 70px;
    }
    
    .filter-options,
    .sort-options {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .btn {
        padding: var(--space-xs);
        font-size: var(--font-size-xs);
    }
    
    .btn-hero {
        padding: var(--space-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.about-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.about-stats div {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 600;
}