/* BLOG STYLESHEET - Tactical Theme */

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background: #1a1a1a;
    position: relative;
}

/* Dark Urban Camouflage */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #2a2f25;
    background-image: 
        /* Large dark patches */
        radial-gradient(circle at 15% 20%, #1a1e16 0%, #1a1e16 80px, transparent 80px),
        radial-gradient(circle at 45% 35%, #1f2419 0%, #1f2419 120px, transparent 120px),
        radial-gradient(circle at 75% 15%, #242920 0%, #242920 90px, transparent 90px),
        radial-gradient(circle at 85% 50%, #1a1e16 0%, #1a1e16 110px, transparent 110px),
        radial-gradient(circle at 25% 65%, #2c312a 0%, #2c312a 100px, transparent 100px),
        radial-gradient(circle at 60% 75%, #1f2419 0%, #1f2419 95px, transparent 95px),
        radial-gradient(circle at 90% 85%, #242920 0%, #242920 85px, transparent 85px),
        radial-gradient(circle at 10% 90%, #2a2f25 0%, #2a2f25 105px, transparent 105px),
        
        /* Medium patches */
        radial-gradient(circle at 35% 10%, #353a2f 0%, #353a2f 60px, transparent 60px),
        radial-gradient(circle at 55% 25%, #2f3429 0%, #2f3429 70px, transparent 70px),
        radial-gradient(circle at 20% 45%, #323730 0%, #323730 65px, transparent 65px),
        radial-gradient(circle at 70% 60%, #2a2f25 0%, #2a2f25 75px, transparent 75px),
        radial-gradient(circle at 40% 80%, #353a2f 0%, #353a2f 55px, transparent 55px),
        radial-gradient(circle at 80% 30%, #2f3429 0%, #2f3429 68px, transparent 68px),
        
        /* Small detail patches */
        radial-gradient(circle at 12% 55%, #3a4034 0%, #3a4034 40px, transparent 40px),
        radial-gradient(circle at 48% 48%, #272c22 0%, #272c22 45px, transparent 45px),
        radial-gradient(circle at 65% 8%, #313629 0%, #313629 38px, transparent 38px),
        radial-gradient(circle at 88% 70%, #3a4034 0%, #3a4034 42px, transparent 42px),
        radial-gradient(circle at 30% 92%, #272c22 0%, #272c22 35px, transparent 35px),
        radial-gradient(circle at 95% 12%, #313629 0%, #313629 40px, transparent 40px);
    
    background-size: 800px 800px, 800px 800px;
    background-position: 0 0, 400px 400px;
}

/* Layer 2: Additional texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 22% 72%, #1a1e16 0%, #1a1e16 55px, transparent 55px),
        radial-gradient(circle at 52% 88%, #2f3429 0%, #2f3429 48px, transparent 48px),
        radial-gradient(circle at 78% 42%, #242920 0%, #242920 52px, transparent 52px),
        radial-gradient(circle at 8% 28%, #353a2f 0%, #353a2f 45px, transparent 45px),
        radial-gradient(circle at 42% 5%, #2c312a 0%, #2c312a 50px, transparent 50px),
        radial-gradient(circle at 68% 95%, #323730 0%, #323730 43px, transparent 43px),
        radial-gradient(circle at 92% 58%, #1f2419 0%, #1f2419 47px, transparent 47px);
    background-size: 600px 600px;
    background-position: 200px 200px;
    opacity: 0.7;
}

a {
    color: #d4a574;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c08d5a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header - Tactical Style */
.site-header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.85) 100%);
    border-bottom: 3px solid #5a6b3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.logo-image {
    height: 80px;
    width: auto;
}

.site-title {
    font-size: 32px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title a {
    color: #d4a574;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.site-tagline {
    font-size: 14px;
    color: #b8b8b8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(90, 107, 61, 0.5);
}

.main-nav a {
    color: #e0e0e0;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 0;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    background: rgba(90, 107, 61, 0.3);
    border: 1px solid #5a6b3d;
}

.main-nav a:hover,
.main-nav a.active {
    background: #5a6b3d;
    color: #fff;
    border-color: #d4a574;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 40px auto;
}

.blog-main {
    background: rgba(26, 26, 26, 0.8);
    padding: 30px;
    border-radius: 0;
    border: 2px solid #5a6b3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.single-post {
    background: rgba(26, 26, 26, 0.8);
    padding: 40px;
    border-radius: 0;
    border: 2px solid #5a6b3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Page Title */
.page-title {
    font-size: 32px;
    color: #d4a574;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #5a6b3d;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Post Grid */
.posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: rgba(45, 58, 31, 0.6);
    border: 2px solid #5a6b3d;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #d4a574;
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #d4a574;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title a:hover {
    color: #c08d5a;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-excerpt {
    color: #f5f5f5;
    margin-bottom: 15px;
    line-height: 1.7;
}

.post-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(90, 107, 61, 0.5);
    color: #d4a574;
    border-radius: 0;
    border: 1px solid #5a6b3d;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.category-tag:hover {
    background: #5a6b3d;
    color: #fff;
}

.read-more {
    display: inline-block;
    color: #d4a574;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #5a6b3d;
    border-radius: 0;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.read-more:hover {
    background: #5a6b3d;
    color: #fff;
    border-color: #d4a574;
}

/* Single Post */
.post-full {
    max-width: 800px;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta-full {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #b8b8b8;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
}

.post-categories-full {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #f5f5f5;
}

.post-body p {
    margin-bottom: 20px;
    color: #f5f5f5;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #d4a574;
}

.post-body img {
    margin: 25px 0;
    border-radius: 0;
}

.post-body a {
    color: #d4a574;
    text-decoration: underline;
}

.post-body a:hover {
    color: #c08d5a;
}

.post-body ul,
.post-body ol {
    margin: 20px 0 20px 30px;
    color: #f5f5f5;
}

.post-body li {
    margin-bottom: 10px;
    color: #f5f5f5;
}

.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #5a6b3d;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    padding: 4px 10px;
    background: rgba(90, 107, 61, 0.5);
    color: #d4a574;
    border-radius: 0;
    border: 1px solid #5a6b3d;
    font-size: 13px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #5a6b3d;
}

.pagination-link {
    padding: 10px 20px;
    background: #5a6b3d;
    color: #fff;
    border-radius: 0;
    border: 2px solid #5a6b3d;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: #d4a574;
    border-color: #d4a574;
    color: #1a1a1a;
}

.pagination-info {
    color: #999;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #5a6b3d;
}

.back-to-blog,
.back-link {
    display: inline-block;
    color: #d4a574;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #5a6b3d;
    border-radius: 0;
    transition: all 0.3s;
    text-transform: uppercase;
}

.back-to-blog:hover,
.back-link:hover {
    background: #5a6b3d;
    color: #fff;
    border-color: #d4a574;
}

/* Category Header */
.category-header {
    margin-bottom: 30px;
}

.post-count {
    color: #b8b8b8;
    font-size: 14px;
    margin-top: 5px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.widget {
    background: rgba(45, 58, 31, 0.6);
    padding: 25px;
    border-radius: 0;
    border: 2px solid #5a6b3d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

.widget h3 {
    font-size: 18px;
    color: #d4a574;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5a6b3d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget p {
    color: #f0f0f0;
    line-height: 1.6;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li.active a {
    color: #d4a574;
    font-weight: 600;
}

.category-list a {
    color: #b8b8b8;
    display: block;
    padding: 8px 12px;
    border-radius: 0;
    transition: all 0.3s;
}

.category-list a:hover {
    background: rgba(90, 107, 61, 0.3);
    color: #d4a574;
    padding-left: 16px;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(90, 107, 61, 0.3);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: #d4a574;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.recent-posts a:hover {
    color: #c08d5a;
}

.recent-posts small {
    color: #999;
    font-size: 12px;
}

/* Footer */
.site-footer {
    background: rgba(26, 26, 26, 0.95);
    color: #b8b8b8;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid #5a6b3d;
}

.site-footer p {
    color: #b8b8b8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .site-title {
        font-size: 24px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .blog-main,
    .single-post {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}

/* === POST IMAGES === */
.post-images {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.post-image {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #5a6b3d;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

/* Multiple images in grid */
.post-images:has(> .post-image:nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Single large image */
.post-images:has(> .post-image:only-child) .post-image {
    max-width: 100%;
}

@media (max-width: 640px) {
    .post-images {
        grid-template-columns: 1fr;
    }
}