/* General Post Container Styling */
.post-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Game Code Header */
.game-code-header {
    margin-bottom: 20px;
}

.game-code-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.last-checked {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Two-Column Layout Structure */
@media screen and (min-width: 901px) {
    .game-code-content-columns {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: flex-start;
    }

    .game-code-left-column {
        flex: 1;
        max-width: 60%;
    }

    .game-code-right-column {
        flex: 1;
        max-width: 40%;
    }
}

/* Tablet Layout */
@media screen and (min-width: 601px) and (max-width: 900px) {
    .game-code-content-columns {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        align-items: flex-start;
        flex-direction: column;
    }

    .game-code-left-column,
    .game-code-right-column {
        max-width: 100%;
        width: 100%;
    }
    
    .game-code-featured-image {
        margin-bottom: 15px;
    }
    
    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Mobile Layout */
@media screen and (max-width: 600px) {
    .game-code-content-columns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .game-code-left-column,
    .game-code-right-column {
        max-width: 100%;
        width: 100%;
    }

    .game-code-featured-image {
        margin-bottom: 15px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Game Description */
.game-description {
    margin-bottom: 15px;
}

.game-description p {
    margin: 0;
    line-height: 1.5;
    color: #444;
}

/* Featured image styling */
.game-code-featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Code Counts */
.code-counts {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #666;
    align-items: center;
}

.active-codes-count {
    color: #28a745;
    font-weight: bold;
}

.expired-codes-count {
    color: #dc3545;
    font-weight: bold;
}

.separator {
    color: #ccc;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex: 1;
    text-align: center;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-link.discord {
    background-color: #5865F2;
    color: white;
}

.social-link.roblox {
    background-color: #000;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Tabs for Code Tables */
.codes-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    position: relative;
}

.tab.active {
    color: #0073aa;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0073aa;
}

/* Navigation Arrows */
.screenshot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.screenshot-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.screenshot-arrow-left {
    left: 10px;
}

.screenshot-arrow-right {
    right: 10px;
}

/* Custom Sidebar Widget */
.custom-sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Sidebar Title */
.custom-sidebar-widget .custom-widget-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

/* Sidebar List */
.custom-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Game Code Item */
.custom-sidebar-widget .custom-game-code-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

/* Remove bottom border for last item */
.custom-sidebar-widget .custom-game-code-item:last-child {
    border-bottom: none;
}

/* Hover Effect: Light Dark Background with Rounded Corners */
.custom-sidebar-widget .custom-game-code-item:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Sidebar Thumbnail */
.custom-sidebar-widget .custom-game-code-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* Sidebar Game Code Details */
.custom-sidebar-widget .custom-game-code-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sidebar Game Code Title */
.custom-sidebar-widget .custom-game-code-title {
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

/* Title Hover Effect */
.custom-sidebar-widget .custom-game-code-title:hover {
    color: #0073aa;
}

/* Game Code Meta (Active Codes, Last Checked, etc.) */
.custom-sidebar-widget .custom-game-code-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
    border-radius: 3px 3px 0 0;
}

.codes-container {
    display: none;
}

.codes-container.active {
    display: block;
}

/* Code Tables */
.codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.codes-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.codes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.codes-table tr:last-child td {
    border-bottom: none;
}

.codes-table tr:hover {
    background-color: #f9f9f9;
}

.code-cell {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
}

/* How to Redeem Section */
.redeem-instructions {
    margin-bottom: 25px;
}

.redeem-instructions h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ddd;
}

.redemption-steps {
    counter-reset: step-counter;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 20px;
}

.redemption-steps li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.redemption-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redemption-image {
    margin-top: 20px;
    text-align: center;
}

.redemption-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.game-features h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ddd;
}

.game-features ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.game-features li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Screenshots Slider */
.screenshot-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 10px auto 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.screenshot-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.screenshot-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.screenshot-slide.active {
    display: block;
}

/* Pagination Dots */
.screenshot-pagination {
    text-align: center;
    margin-top: 10px;
}

.screenshot-pagination .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.screenshot-pagination .dot.active {
    background-color: #0073aa;