/*
Theme Name: Fullwidth Blog System
Description: A complete blog system with list view, grid view, and details page
Version: 1.0
Author: Your Name
*/

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

/* Full Width Container */
.container {
    width: 100%;
    padding: 0 30px;
}

/* Header Styles - New Structure */
.site-header {
    display: flex;
    flex-direction: column;
}

/* Top Header Bar - Now with 3 columns */
.top-header-bar {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.top-header-bar .header-inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-column {
    display: flex;
    align-items: center;
}

.top-header-left {
    justify-content: flex-start;
}

.top-header-middle {
    justify-content: center;
}

.top-header-right {
    justify-content: flex-end;
}

.default-top-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.default-top-info i {
    color: #0073aa;
}

.default-top-middle {
    font-size: 14px;
    text-align: center;
}

.default-top-social {
    display: flex;
    gap: 15px;
}

.default-top-social a {
    color: #ccc;
    font-size: 16px;
    transition: color 0.3s ease;
}

.default-top-social a:hover {
    color: #0073aa;
}

/* Main Header Bar */
.main-header-bar {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header-bar .header-inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    display: block;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
}

/* Dropdown Menu - Single Column */
.main-navigation .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px; /* Fixed width for consistent single column */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important; /* Force block display */
    column-count: 1 !important; /* Ensure single column */
    column-gap: 0 !important; /* Remove column gap */
}

.main-navigation ul li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .dropdown-menu li {
    width: 100%; /* Full width for single column */
    border-bottom: 1px solid #eee;
    display: block;
    float: none;
    clear: both;
}

.main-navigation .dropdown-menu li:last-child {
    border-bottom: none;
}

.main-navigation .dropdown-menu a {
    display: block;
    padding: 12px 20px; /* Consistent padding */
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-sub-menu (3rd level) - Also single column */
.main-navigation .sub-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    display: block !important;
    column-count: 1 !important;
    column-gap: 0 !important;
}

.main-navigation .dropdown-menu li:hover > .sub-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.main-navigation .sub-sub-menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
    display: block;
    float: none;
    clear: both;
}

.main-navigation .sub-sub-menu a {
    padding: 12px 20px;
    width: 100%;
}

.main-navigation .dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
}

/* Dropdown arrows positioning */
.main-navigation .dropdown-main > a .dropdown-arrow {
    float: right;
}

.main-navigation .dropdown-sub > a .dropdown-arrow {
    float: right;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Secondary Navigation Styles */
.secondary-navigation {
    padding: 20px 0; /* Increased padding for more space */
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.secondary-navigation .header-inner-container {
    justify-content: center; /* Default center alignment */
}

.secondary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 20px; /* Added horizontal padding */
    align-items: center;
}

.secondary-menu li {
    position: relative;
    padding: 0 20px; /* Increased padding for menu items */
}

.secondary-menu li:not(:last-child):after {
    content: "|";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc; /* Default separator color, will be overridden by inline style */
}

.secondary-menu a {
    display: block;
    padding: 8px 0; /* Increased vertical padding */
    font-weight: 500;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

.secondary-menu a:hover {
    color: #0073aa;
}

/* Sticky Header - Both top bar and main header stick together */
.sticky-header-enabled .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.sticky-header-enabled .site-content {
    padding-top: 200px; /* Increased to accommodate both bars */
}

/* Ensure top bar widgets are styled properly */
.top-header-bar .widget {
    display: inline-block;
    margin: 0;
}

.top-header-bar .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-header-bar .widget ul li {
    display: inline-block;
    margin-right: 15px;
}

.top-header-bar .widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.top-header-bar .widget a:hover {
    color: #0073aa;
}

.top-header-bar .widget_text {
    font-size: 14px;
}

.top-header-bar .widget_search form {
    display: flex;
    align-items: center;
}

.top-header-bar .widget_search input {
    padding: 5px 10px;
    border: 1px solid #333;
    background: #333;
    color: #ccc;
    border-radius: 3px;
    margin-right: 5px;
}

.top-header-bar .widget_search input:focus {
    outline: none;
    border-color: #0073aa;
}

.top-header-bar .widget_search button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.top-header-bar .widget_search button:hover {
    background: #005a87;
}

/* Blog Layout - Full Width */
.site-content {
    padding: 40px 0;
    background: #f9f9f9;
}

.blog-container {
    width: 100%;
    max-width: 100%;
}

.blog-header {
    width: 100%;
    margin-bottom: 40px;
    padding: 0 30px;
}

.blog-title {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.view-toggle {
    display: flex;
    gap: 15px;
}

.view-toggle button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-toggle button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* List View - Full Width */
.blog-list {
    width: 100%;
    padding: 0 30px;
}

.blog-list .post {
    display: flex;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-list .post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.blog-list .post-thumbnail {
    flex: 0 0 400px;
    max-width: 400px;
}

.blog-list .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list .post-content {
    flex: 1;
    padding: 35px;
}

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

.blog-list .post-title a {
    color: #333;
}

.blog-list .post-title a:hover {
    color: #0073aa;
}

.blog-list .post-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.blog-list .post-meta span {
    margin-right: 20px;
}

.blog-list .post-meta i {
    margin-right: 5px;
}

.blog-list .post-excerpt {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.blog-list .read-more {
    display: inline-block;
    padding: 10px 25px;
    background: #0073aa;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.blog-list .read-more:hover {
    background: #005a87;
}

/* Grid View - Full Width */
.blog-grid {
    width: 100%;
    padding: 0 30px;
}

.blog-grid .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.blog-grid .post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-grid .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-grid .post-thumbnail {
    height: 250px;
    overflow: hidden;
}

.blog-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-grid .post-content {
    padding: 30px;
}

.blog-grid .post-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-grid .post-title a {
    color: #333;
}

.blog-grid .post-title a:hover {
    color: #0073aa;
}

.blog-grid .post-meta {
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
}

.blog-grid .post-meta span {
    margin-right: 15px;
}

.blog-grid .post-meta i {
    margin-right: 5px;
}

.blog-grid .post-excerpt {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.blog-grid .read-more {
    display: inline-block;
    padding: 10px 25px;
    background: #0073aa;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.blog-grid .read-more:hover {
    background: #005a87;
}

/* Single Post - Full Width */
.single-post {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.single-post .post-header {
    margin-bottom: 40px;
}

.single-post .post-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .post-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.single-post .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    font-size: 15px;
}

.single-post .post-meta span {
    margin-right: 25px;
}

.single-post .post-meta i {
    margin-right: 8px;
}

.single-post .post-content {
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.8;
}

.single-post .post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    font-weight: 600;
}

.single-post .post-content h3 {
    font-size: 26px;
    margin: 35px 0 15px;
    font-weight: 600;
}

.single-post .post-content p {
    margin-bottom: 25px;
}

.single-post .post-content img {
    margin: 30px 0;
    border-radius: 8px;
}

.single-post .post-tags {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.single-post .post-tags h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.single-post .post-tags a {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.single-post .post-tags a:hover {
    background: #005a87;
}

/* Author Box */
.author-box {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

.author-avatar {
    flex: 0 0 100px;
    margin-right: 30px;
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.author-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.author-info p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-3px);
}

.related-post-thumbnail {
    height: 180px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-post-title a {
    color: #333;
}

.related-post-title a:hover {
    color: #0073aa;
}

.related-post-meta {
    font-size: 13px;
    color: #666;
}

/* Comments Section */
.comments-section {
    margin-bottom: 40px;
}

.comments-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    float: left;
    margin-right: 20px;
}

.comment-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-content {
    overflow: hidden;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.comment-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.comment-text {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.comment-reply {
    font-size: 14px;
}

.comment-reply a {
    color: #0073aa;
    font-weight: 500;
}

.comment-reply a:hover {
    color: #005a87;
}

/* Comment Form */
.comment-form {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.comment-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.comment-form textarea {
    height: 160px;
    resize: vertical;
}

.comment-form .submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.comment-form .submit:hover {
    background: #005a87;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination .page-numbers {
    display: flex;
    list-style: none;
    gap: 8px;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers a:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.pagination .page-numbers .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 25px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widgets .widget {
    margin-bottom: 25px;
}

.footer-widgets .widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
    color: #fff;
    font-weight: 600;
}

.footer-widgets ul {
    list-style: none;
}

.footer-widgets ul li {
    margin-bottom: 12px;
}

.footer-widgets ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widgets ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

/* =================================================================
   Import/Export Section Styling
   ================================================================= */

#import-export-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#import-export-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

#import-export-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    background: #fff;
}

#import-export-section .button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

#import-export-section .button:hover {
    background: #005a87;
}

#import-export-section .button-secondary {
    background: #6c757d;
}

#import-export-section .button-secondary:hover {
    background: #5a6268;
}

/* =================================================================
   Additional CSS Section Styling
   ================================================================= */

#additional-css-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

#additional-css-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

#additional-css-section textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    background: #fff;
}

/* =================================================================
   Additional Utility Styles
   ================================================================= */

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Additional Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background: #005a87;
    transform: scale(1.1);
}

.scroll-to-top.visible {
    display: flex;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s linear infinite;
    margin: 0 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.theme-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.theme-notification.show {
    transform: translateX(0);
}

.theme-notification.success {
    border-left: 4px solid #28a745;
}

.theme-notification.error {
    border-left: 4px solid #dc3545;
}

.theme-notification h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.theme-notification p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Enhanced Mobile Menu Animation */
@media screen and (max-width: 768px) {
    .main-navigation {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .main-navigation.toggled {
        transform: translateX(0);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .secondary-navigation,
    .sidebar,
    .footer-widgets,
    .comment-form,
    .pagination,
    .view-toggle {
        display: none !important;
    }
    
    .site-content {
        padding: 0 !important;
        background: #fff !important;
    }
    
    .post,
    .single-post {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
    }
    
    .post-title,
    .single-post .post-title {
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .author-box,
    .related-posts {
        page-break-inside: avoid;
    }
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .blog-header,
    .blog-list,
    .blog-grid,
    .single-post {
        padding: 0 25px;
    }
    
    .blog-grid .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .sticky-header-enabled .site-header {
        position: fixed;
    }
    
    .sticky-header-enabled .site-content {
        padding-top: 0;
    }
    
    .mobile-sticky-header-enabled .site-content {
        padding-top: 0;
    }
    
    .sticky-header-enabled.mobile-sticky-header-enabled .site-content {
        padding-top: 120px;
    }
    
    .mobile-sticky-header-enabled .site-content {
        padding-top: 0;
    }
    
    .blog-grid .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .secondary-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-menu li {
        padding: 0;
        border-bottom: 1px solid #eee;
    }
    
    .secondary-menu li:last-child {
        border-bottom: none;
    }
    
    .secondary-menu li:not(:last-child):after {
        display: none;
    }
    
    .secondary-menu a {
        padding: 10px 0;
    }
}

@media screen and (max-width: 600px) {
    .blog-grid .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .secondary-menu {
        gap: 10px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .site-content {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .blog-list .post,
    .blog-grid .post,
    .single-post {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .blog-list .post-title a,
    .blog-grid .post-title a,
    .single-post .post-title {
        color: #ffffff;
    }
    
    .blog-list .post-meta,
    .blog-grid .post-meta,
    .single-post .post-meta {
        color: #b0b0b0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blog-list .post:hover,
    .blog-grid .post:hover {
        transform: none;
    }
    
    .dropdown-menu {
        transform: none !important;
    }
    
    .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }
}