/* Blog section styling */
#blog {
    border: none !important;
}

/* Featured Posts Section */
.featured-posts {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Grid column for featured section header removed */

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .featured-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Featured section header removed per user request */

.featured-post {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.1) 0%, 
        rgba(255, 105, 180, 0.05) 50%, 
        rgba(0, 255, 255, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.8) contrast(1.2);
}

.featured-post:hover .featured-img {
    transform: scale(1.05);
    filter: brightness(1.0) contrast(1.3);
}

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.3) 0%, 
        rgba(255, 105, 180, 0.2) 50%, 
        rgba(0, 255, 255, 0.2) 100%);
    border-radius: 12px;
    padding: 2px;
    margin: -2px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-post:hover::before {
    opacity: 1;
}

.featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(138, 43, 226, 0.3),
        0 0 30px rgba(255, 105, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featured-post-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.featured-category {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Orbitron', 'Monaco', 'Menlo', monospace;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.featured-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.featured-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-author.author-colonelpanic {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.featured-post-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Orbitron', 'Monaco', 'Menlo', monospace;
    flex-grow: 0;
}

.featured-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.featured-post-title a:hover {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
}

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0.9;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.featured-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Orbitron', 'Monaco', 'Menlo', monospace;
    transition: all 0.3s ease;
}

.featured-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.featured-cta {
    text-align: left;
    margin-top: auto;
    flex-grow: 0;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Orbitron', 'Monaco', 'Menlo', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    width: 100%;
    font-size: 0.9rem;
}

.featured-link::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.featured-link:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(138, 43, 226, 0.5),
        0 0 20px rgba(255, 105, 180, 0.3);
}

.featured-link:hover::after {
    transform: translateX(5px);
}

/* Mobile Responsiveness for Featured Posts */
@media (max-width: 768px) {
    .featured-posts {
        margin-bottom: 3rem;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .featured-post {
        padding: 0;
    }
    
    .featured-image {
        height: 180px;
    }
    
    .featured-post-content {
        padding: 1.5rem;
    }
    
    .featured-post-title {
        font-size: 1.3rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .featured-cta {
        text-align: center;
    }
    
    .featured-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .featured-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 160px;
    }
    
    .featured-post-content {
        padding: 1.2rem;
    }
    
    .featured-post-title {
        font-size: 1.2rem;
    }
    
    .featured-excerpt {
        -webkit-line-clamp: 3;
    }
    
    .featured-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Reset WordPress default styles for blog controls */
#blog input[type="text"],
#blog select,
.blog-controls input[type="text"],
.blog-controls select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    outline: none !important;
    padding: 0 !important;
    text-shadow: none !important;
    width: auto !important;
}

/* Blog Controls */
.blog-controls {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    text-shadow: none;
}

.search-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    background: rgba(0, 0, 0, 0.4);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
}

.filter-container select {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.filter-container select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    background: rgba(0, 0, 0, 0.4);
}

.filter-container select option {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tag-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.tag-filter.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Mobile responsiveness for blog controls */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .filter-container {
        width: 100%;
    }
    
    .filter-container select {
        width: 100%;
    }
    
    .tag-filters {
        justify-content: center;
    }
    
    .tag-filter {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Regular Articles Section Header */
.more-articles-header {
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.more-articles-title {
    color: var(--accent-green);
    font-family: 'Orbitron', 'Monaco', 'Menlo', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

.more-articles-title::before {
    content: '[';
    color: var(--accent-green);
    margin-right: 0.5rem;
    text-shadow: 0 0 5px var(--accent-green);
}

.more-articles-title::after {
    content: ']';
    color: var(--accent-green);
    margin-left: 0.5rem;
    text-shadow: 0 0 5px var(--accent-green);
}

/* Enhanced Blog Posts */
.blog-post {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post:hover {
    transform: translateX(5px);
    border-left-color: var(--accent-pink);
    box-shadow: -5px 0 20px rgba(255, 20, 147, 0.2);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-author {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-colonelpanic {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: bold;
    position: relative;
}

.author-colonelpanic::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 4px;
    z-index: -1;
}

.blog-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-tags {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.blog-tags .tag {
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.blog-post h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
    flex-grow: 0;
}

.blog-post h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h3 a:hover {
    color: var(--accent-pink);
}

.blog-post p {
    flex-grow: 1;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}



/* No Posts / Error States */
.no-posts,
.blog-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-posts h3,
.blog-error h3 {
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

/* Hide broken images in blog posts */
.blog-post img[src=""],
.blog-post img:not([src]),
.blog-post img[src="#"] {
    display: none !important;
}

/* Fix for any phantom image elements */
.blog-post::before,
.blog-post::after {
    content: none !important;
}

/* Admin Interface - Removed */

.admin-panel {
    display: none !important;
    visibility: hidden !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: -9999;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.admin-panel.active {
    display: none !important;
    visibility: hidden !important;
}

.admin-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2rem;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form label {
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    box-sizing: border-box;
}

.admin-form textarea {
    min-height: 200px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.admin-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Admin Post List Styling */
.post-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-info h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.post-meta .category,
.post-meta .author,
.post-meta .date,
.post-meta .status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.post-meta .category {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.post-meta .author {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta .author.author-colonelpanic {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: bold;
}

.post-meta .date {
    color: var(--text-secondary);
}

.post-meta .status.published {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.post-meta .status.draft {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tag-filters {
        justify-content: center;
    }
    

    
    .admin-panel {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .tag-filters {
        gap: 0.3rem;
    }
    
    .tag-filter {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Extra mobile image fixes */
    .blog-post img {
        display: none !important;
    }
    
    .blog-post *[style*="background-image"] {
        background-image: none !important;
    }
    
    /* Hide lightning bolt on mobile */
    .blog-author.author-colonelpanic::before {
        content: '' !important;
    }
    
    .blog-author.author-colonelpanic {
        font-weight: normal !important;
    }
} 