/* Import the Bangers font */
@font-face {
    font-family: 'Bangers';
    src: url('../frontend/home/v1/fonts/Bangers-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Import additional fonts for game sections */
@font-face {
    font-family: 'RussoOne';
    src: url('../frontend/home/v1/fonts/RussoOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Righteous';
    src: url('../frontend/home/v1/fonts/Righteous-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Style the breadcrumb with the new font */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    font-family: 'Bangers', cursive;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    font-family: 'Bangers', cursive;
    color: #333;
}

/* Category header styles */
.category-header h1 {
    font-family: 'RussoOne', sans-serif;
    font-size: 32px;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-weight: 700; /* Make title bold */
}

.category-description {
    font-family: 'Righteous', cursive;
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

/* Merged and reduced post grid styling */
.posts-grid {
    position: relative;
    display: block;          /* Use block for normal layout */
    margin: 15px 0;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

/* Special styling for empty posts grid to center content */
.posts-grid.empty-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
    margin: 40px auto;
    text-align: center;
    padding: 0;                /* Remove any padding that might offset */
    box-sizing: border-box;    /* Ensure consistent box model */
}

/* Only apply min-height when empty */
.posts-grid:empty {
    min-height: 500px;
    /* No need for specific height as .no-posts now has its own height */
}

.post-item {
    display: flex;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.post-item:hover {
    border-color: #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.post-item .post-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.05);
}

.post-item .post-content {
    flex-grow: 1;
    padding: 10px 0 5px; /* Increased top padding to move title lower */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-item .post-title {
    margin: 5px 0 12px 0; /* Added top margin to push title lower */
    font-size: 18px;
    line-height: 1.3;
    font-family: 'RussoOne', sans-serif; /* Add font-family to the title element itself */
}

.post-item .post-title a {
    font-family: 'RussoOne', sans-serif;
    font-size: 18px;
    color: #1a2a3a;
    transition: color 0.3s;
    font-weight: 700;
    text-decoration: none;
}

.post-item .post-title a:hover {
    color: #0066cc;
}

.post-item .post-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

/* Add author style */
.post-item .post-meta .post-author {
    font-family: 'Righteous', cursive;
    background-color: #f0f4f8;
    padding: 4px 10px;
    border-radius: 20px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

/* Post meta information - fixed duplicate code */
.post-meta {
    font-family: 'Righteous', cursive;
    font-size: 14px;
    color: #888;
    font-weight: 600; /* Semi-bold for meta information */
}

.post-meta span {
    margin-right: 15px;
}

/* No posts section with Goku image - improved centering for desktop */
.no-posts {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: none;          /* Remove max-width restriction */
    padding: 60px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    z-index: 1;
    font-family: 'Righteous', cursive;
    min-height: 400px;
}

.no-posts p {
    font-family: 'Righteous', cursive;
    font-size: 16px;
    color: #555;
    margin-top: 15px;
    font-weight: normal;
    line-height: 1.4;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.no-posts:before {
    content: '';
    display: block;
    width: 200px;
    height: 200px;
    background-image: url('../frontend/home/v1/images/goku.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    pointer-events: none;
}

/* Modify the posts-grid to ensure proper vertical space for empty state */
.posts-grid:empty {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media query for desktop specific adjustments */
@media (min-width: 992px) {
    /* Ensure container doesn't interfere with centering */
    .container {
        position: relative;
        margin: 0 auto;
    }
    
    .posts-grid.empty-grid {
        min-height: 70vh;         /* Use viewport height for better centering */
        margin: 0 auto;           /* Center the grid */
        width: 100%;
        position: relative;
        display: flex !important; /* Force flexbox with !important */
        align-items: center !important;      /* Vertical center */
        justify-content: center !important;  /* Horizontal center */
        padding: 0 !important;    /* Remove any inherited padding */
        left: 0 !important;       /* Reset any positioning */
        right: 0 !important;
        transform: none !important; /* Reset transforms */
    }
    
    .no-posts {
        position: static !important;         /* Remove absolute positioning */
        margin: 0 auto !important;          /* Center with margin */
        padding: 60px 40px;                 /* Comfortable padding */
        width: auto;                        /* Let content determine width */
        max-width: 600px;                   /* Limit maximum width */
        min-height: auto;                   /* Remove min-height constraint */
        transform: none !important;         /* Remove transforms */
        display: flex;                      /* Maintain flex for internal layout */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;                 /* Ensure text is centered */
        left: auto !important;              /* Reset positioning */
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}

/* Pagination */
.pagination {
    font-family: 'RussoOne', sans-serif;
    margin-top: 30px;
    text-align: center;
}

.pagination .page-link {
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
}

.pagination .page-link.current {
    font-weight: bold;
    background-color: #0066cc;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .post-item {
        padding: 12px;
    }
    
    .post-item .post-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
    }
    
    .post-item .post-title a {
        font-size: 16px;
    }
    
    .post-item .post-meta {
        flex-wrap: wrap;
        font-size: 12px;
    }
}
    
    
    .post-item .post-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
    }
    
    .post-item .post-title a {
        font-size: 16px;
    }
    
    .post-item .post-meta {
        flex-wrap: wrap;
        font-size: 12px;
    }

