/*
Theme Name: HCG 2.4
Description: A dark, mysterious WordPress theme with hand-stamped aesthetic for indie game studios
Author: Handcraft Games
Version: 2.4
License: GPL v2 or later
Text Domain: handcraft-games
*/

/* Dark Hand-Stamped Aesthetic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: #0a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* WordPress Admin Bar */
#wpadminbar {
    background: #ff6b35 !important;
}

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

/* Header */
.site-header {
    border-bottom: 3px solid #ff6b35;
    padding: 30px 0;
    margin-bottom: 50px;
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
}

.site-branding {
    text-align: center;
    margin-bottom: 30px;
}

/* Site title hidden for clean homepage */

/* Logo removed - clean homepage design */

/* Site title link hidden for clean homepage */

/* Site description hidden for clean homepage */

/* 3D Cube Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.cube-logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    /* Ensure proper touch target size for mobile */
    min-height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure it's clickable */
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.cube-logo-link:hover {
    transform: scale(1.1);
}

.cube-logo-link:active {
    transform: scale(0.95);
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .cube-logo-link {
        /* Larger touch target for mobile */
        min-height: 80px;
        min-width: 80px;
        /* Ensure it's clickable */
        position: relative;
        z-index: 10;
        /* Add touch feedback */
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
    }
    
    .cube-logo {
        /* Ensure cube is properly sized for mobile touch */
        width: 60px;
        height: 60px;
        /* Add pointer cursor for mobile */
        cursor: pointer;
        /* Ensure it's above other elements */
        position: relative;
        z-index: 5;
    }
}

.cube-logo {
    position: relative;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cubeRotate 10s infinite linear;
    cursor: pointer;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #1a2a2a;
    border: 2px solid #ff6b35;
    opacity: 0.8;
}

.cube-face.front { transform: translateZ(30px); }
.cube-face.back { transform: translateZ(-30px) rotateY(180deg); }
.cube-face.top { transform: translateY(-30px) rotateX(90deg); }
.cube-face.bottom { transform: translateY(30px) rotateX(-90deg); }
.cube-face.left { transform: translateX(-30px) rotateY(-90deg); }
.cube-face.right { transform: translateX(30px) rotateY(90deg); }

.handprint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ff6b35;
    z-index: 10;
    text-shadow: 2px 2px 0 #0a1a1a;
    animation: handPulse 2s infinite ease-in-out;
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes handPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Navigation - OSRS Style */
.main-navigation {
    margin: 40px 0;
    padding: 15px;
    background: #0a1a1a;
    border: 3px solid #ff6b35;
    border-radius: 0;
    position: relative;
}

.main-navigation::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    pointer-events: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    background: #1a2a2a;
    border: 2px solid #333;
    border-radius: 0;
    padding: 12px 18px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 3px;
}

.main-navigation li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.15);
    transition: left 0.4s ease;
}

.main-navigation li:hover::before {
    transform: scaleX(1);
}

.main-navigation li:hover::after {
    left: 100%;
}

.main-navigation li:hover {
    transform: translateY(-1px);
    border-color: #ff6b35;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 0 1px #ff6b35,
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.main-navigation li:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-navigation a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 #0a1a1a;
    display: block;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #ff8c42;
    text-shadow: 
        1px 1px 0 #0a1a1a,
        0 0 8px rgba(255, 140, 66, 0.5);
}

/* Navigation divider - removed for cleaner look */
.main-navigation li:not(:last-child)::after {
    display: none;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .main-navigation {
        padding: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-navigation li {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
    
    .main-navigation li:not(:last-child)::after {
        display: none;
    }
}

/* Content Layout */
.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.main-content {
    min-height: 500px;
}

/* Posts */
.post {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff6b35;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 2px #ff6b35;
}

.post-title {
    font-size: 1.4rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

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

.post-meta {
    font-size: 0.7rem;
    color: #8a8a8a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #333;
    position: relative;
}

.post-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), transparent);
    z-index: 1;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.9);
}

/* Single Post */
.single-post .post-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #c0c0c0;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3 {
    color: #ff6b35;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.single-post .post-content h1 { font-size: 1.5rem; }
.single-post .post-content h2 { font-size: 1.3rem; }
.single-post .post-content h3 { font-size: 1.1rem; }

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

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    border: 2px solid #333;
    margin: 20px 0;
    filter: contrast(1.1) brightness(0.9);
}

/* Archive */
.archive-header {
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
    border: 3px solid #ff6b35;
    border-radius: 0;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.archive-title {
    font-size: 1.8rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: bold;
}

.archive-description {
    font-size: 0.9rem;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
    border: 3px solid #333;
    border-radius: 0;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 8px;
    font-weight: bold;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.widget li:hover {
    padding-left: 10px;
    border-left: 3px solid #ff6b35;
}

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

.widget a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #ff6b35;
}

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

.pagination .page-numbers {
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
    border: 2px solid #333;
    border-radius: 0;
    padding: 12px 18px;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination .page-numbers:hover,
.pagination .current {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #0a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Footer */
.site-footer {
    border-top: 3px solid #ff6b35;
    padding: 50px 0;
    text-align: center;
    margin-top: 80px;
    background: linear-gradient(135deg, #0a1a1a 0%, #1a2a2a 100%);
}

.footer-text {
    font-size: 0.8rem;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.footer-navigation {
    margin-top: 20px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-navigation a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #ff6b35;
}

/* Comments */
.comments-area {
    margin-top: 50px;
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
    border: 3px solid #333;
    border-radius: 0;
    padding: 30px;
}

.comments-title {
    font-size: 1.3rem;
    color: #ff6b35;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #333;
}

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

.comment-author {
    font-size: 0.9rem;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 0.7rem;
    color: #8a8a8a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-content {
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.6;
}

/* Read More Button */
.read-more {
    display: inline-block;
    background: #ff6b35;
    color: #0a1a1a;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    background: #1a2a2a;
    border: 2px solid #333;
    color: #c0c0c0;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.8rem;
    flex: 1;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #ff6b35;
}

.search-form input[type="submit"] {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #0a1a1a;
    border: 2px solid #ff6b35;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General mobile text wrapping */
    body {
        font-size: 14px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Container adjustments */
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    /* Content area */
    .content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Navigation mobile */
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Text elements */
    .site-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .post-title {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .archive-title {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Post content mobile */
    .post-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .post-excerpt {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    /* Single post content */
    .single-post .post-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
    }
    
    .single-post .post-content h1,
    .single-post .post-content h2,
    .single-post .post-content h3,
    .single-post .post-content h4,
    .single-post .post-content h5,
    .single-post .post-content h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .single-post .post-content h1 { font-size: 1.3rem; }
    .single-post .post-content h2 { font-size: 1.2rem; }
    .single-post .post-content h3 { font-size: 1.1rem; }
    
    .single-post .post-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
    }
    
    /* Homepage mobile */
    .pixel-headline {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .crafting-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        /* Ensure proper mobile centering */
        text-align: center;
        width: 100%;
    }
    
    .subheading {
        text-align: center;
        width: 100%;
        margin: 30px auto 40px auto;
    }
    
    .make-cool-games {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        /* Fix mobile centering */
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    /* Featured cards mobile */
    .featured-card h3 {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .featured-card p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    /* Blog preview mobile */
    .preview-title {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .preview-excerpt {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    /* Game cards mobile */
    .game-card {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .game-excerpt {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    /* Game description mobile */
    .game-description p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
    }
    
    /* Widget mobile */
    .widget {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .widget-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    /* Archive mobile */
    .archive-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    /* Blog page mobile styles */
    .blog-page-container {
        padding: 20px 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-header {
        margin-bottom: 40px;
        padding: 25px 15px;
        max-width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        border-width: 2px;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blog-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        margin-bottom: 15px;
        text-shadow: 
            1px 1px 0 #0a1a1a,
            2px 2px 0 #1a2a2a;
        padding: 0 5px;
    }
    
    .blog-description {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        margin-bottom: 0;
        padding: 0 5px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
        max-width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }
    
    .post {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .post-title {
        font-size: 1.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .read-more {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Fix for cut-off text on mobile - more targeted approach */
    .blog-title,
    .blog-description,
    .post-title,
    .post-meta,
    .post-excerpt,
    .section-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* OSRS Style Animations */
@keyframes handStamp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pixelGlow {
    0%, 100% { 
        text-shadow: 1px 1px 0 #0a1a1a, 0 0 8px rgba(255, 140, 66, 0.5);
    }
    50% { 
        text-shadow: 1px 1px 0 #0a1a1a, 0 0 12px rgba(255, 140, 66, 0.8);
    }
}

@keyframes buttonPress {
    0% { transform: translateY(0); }
    50% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

.post:hover .post-title {
    animation: handStamp 0.3s ease-in-out;
}

.main-navigation li:hover a {
    animation: pixelGlow 1s ease-in-out infinite;
}

.main-navigation li:active {
    animation: buttonPress 0.1s ease-in-out;
}

/* OSRS-style pixel borders */
.main-navigation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 49%, #ff6b35 49%, #ff6b35 51%, transparent 51%, transparent 100%);
    background-size: 4px 4px;
    opacity: 0.3;
    pointer-events: none;
}

/* Homepage Styles */
.homepage-container {
    min-height: 100vh;
    padding: 40px 0;
}

/* Hero Section with Loading Screen */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    margin-bottom: 80px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    text-align: center;
}

.loading-screen {
    text-align: center;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pixel-headline {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 
        2px 2px 0 #0a1a1a,
        4px 4px 0 #1a2a2a,
        0 0 20px rgba(255, 107, 53, 0.5);
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.crafting-text {
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.crafting-text::after {
    display: none;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    gap: 2px;
}

.dot {
    display: inline-block;
    color: #ff6b35;
    font-size: 2rem;
    animation: blink 1.4s infinite;
    opacity: 0;
    line-height: 1;
    vertical-align: middle;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

    .subheading {
        margin-top: 30px;
        margin-bottom: 40px;
        /* Ensure proper mobile centering */
        text-align: center;
        width: 100%;
    }

.make-cool-games {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #0a1a1a;
    animation: fadeInUp 1s ease-out 2s both;
    opacity: 0;
    text-align: center;
    display: block;
    width: 100%;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Loading bar removed for clean homepage */

/* Featured Content Grid */
.featured-content {
    margin-bottom: 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-card {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: cardSlideIn 0.8s ease-out both;
}

.featured-card:nth-child(1) { animation-delay: 0.2s; }
.featured-card:nth-child(2) { animation-delay: 0.4s; }
.featured-card:nth-child(3) { animation-delay: 0.6s; }

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.1);
    transition: left 0.5s ease;
}

.featured-card:hover::before {
    left: 100%;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b35;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 2px #ff6b35;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.featured-card h3 {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.featured-card p {
    color: #c0c0c0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-button {
    display: inline-block;
    background: #ff6b35;
    color: #0a1a1a;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.card-button:hover::before {
    left: 100%;
}

.card-button:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Blog Preview Section */
.blog-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    color: #ff6b35;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #0a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-preview-card {
    background: linear-gradient(135deg, #1a2a2a 0%, #0a1a1a 100%);
    border: 3px solid #333;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.blog-preview-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b35;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 2px #ff6b35;
}

.preview-thumbnail {
    position: relative;
    overflow: hidden;
}

.preview-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.preview-content {
    padding: 25px;
}

.preview-title {
    font-size: 1.2rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.preview-title a {
    color: inherit;
    text-decoration: none;
}

.preview-title a:hover {
    color: #ff8c42;
}

.preview-excerpt {
    color: #c0c0c0;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.preview-meta {
    font-size: 0.8rem;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-posts {
    text-align: center;
}

.view-all-button {
    display: inline-block;
    background: #ff6b35;
    color: #0a1a1a;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.no-posts {
    text-align: center;
    color: #8a8a8a;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Y2K Loading Animations */
@keyframes cursorBlink {
    0%, 50% { border-color: #ff6b35; }
    51%, 100% { border-color: transparent; }
}

@keyframes blink {
    0%, 50% { opacity: 0; }
    51%, 100% { opacity: 1; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Page Styles */
.blog-page-container {
    min-height: 100vh;
    padding: 40px 0;
    text-align: center;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #1a2a2a;
    border: 3px solid #ff6b35;
    border-radius: 0;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.blog-title {
    font-size: 3rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 #0a1a1a,
        4px 4px 0 #1a2a2a;
}

.blog-description {
    font-size: 1.1rem;
    color: #c0c0c0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.post {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff6b35;
}

.post:hover {
    transform: translateY(-5px);
    border-color: #ff6b35;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 2px #ff6b35;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

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

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

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 1.4rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

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

.post-meta {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

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

.post-meta a {
    color: #ff6b35;
    text-decoration: none;
}

.post-meta a:hover {
    color: #ff8c42;
}

.post-excerpt {
    color: #c0c0c0;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    background: #ff6b35;
    color: #0a1a1a;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Pixel Grid Background */
.homepage-container::before,
.blog-page-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 49%, rgba(255, 107, 53, 0.1) 49%, rgba(255, 107, 53, 0.1) 51%, transparent 51%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 49%, rgba(255, 107, 53, 0.1) 49%, rgba(255, 107, 53, 0.1) 51%, transparent 51%, transparent 100%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Games Section Styles */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-thumbnail {
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #333;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-meta {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-status {
    background: #ff6b35;
    color: #0a1a1a;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
}

.game-status.status-development {
    background: #ff6b35;
}

.game-status.status-alpha {
    background: #ff8c42;
}

.game-status.status-beta {
    background: #ffa500;
}

.game-status.status-released {
    background: #32cd32;
}

.game-platforms,
.game-release-date {
    background: #1a2a2a;
    color: #c0c0c0;
    padding: 4px 8px;
    font-size: 0.7rem;
    border: 1px solid #333;
    border-radius: 0;
}

.game-excerpt {
    margin-bottom: 20px;
    color: #c0c0c0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.game-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-button {
    background: #32cd32 !important;
    border-color: #32cd32 !important;
}

.download-button:hover {
    background: #228b22 !important;
    border-color: #228b22 !important;
}

.no-games {
    text-align: center;
    color: #8a8a8a;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

/* Single Game Page Styles */
.single-game-layout {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.game-main-content {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
}

.game-hero-image {
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #333;
}

.game-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-video {
    margin-bottom: 30px;
}

.game-video h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.video-container {
    position: relative;
    width: 100%;
    border: 2px solid #333;
    border-radius: 0;
    overflow: hidden;
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.game-description h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.game-description p {
    color: #c0c0c0;
    line-height: 1.7;
    margin-bottom: 15px;
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-info-card {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    padding: 25px;
}

.game-info-card h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.game-info-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.game-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.game-info-item strong {
    color: #ff6b35;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.game-info-item span {
    color: #c0c0c0;
    font-size: 0.9rem;
}

.game-download-section {
    margin-top: 20px;
    text-align: center;
}

.game-navigation {
    background: #1a2a2a;
    border: 3px solid #333;
    border-radius: 0;
    padding: 25px;
}

.game-navigation h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.other-games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.other-game-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #0a1a1a;
    border: 2px solid #333;
    border-radius: 0;
    transition: all 0.3s ease;
}

.other-game-item:hover {
    border-color: #ff6b35;
    transform: translateX(5px);
}

.other-game-thumbnail {
    flex-shrink: 0;
}

.other-game-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #333;
    border-radius: 0;
}

.other-game-info h4 {
    margin-bottom: 5px;
}

.other-game-info h4 a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.other-game-info h4 a:hover {
    color: #ff8c42;
}

.other-game-info .game-status {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Responsive Design for Games */
@media (max-width: 768px) {
    .single-game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .other-game-item {
        flex-direction: column;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .other-game-thumbnail {
        align-self: center;
    }
    
    .game-description h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .game-info-card h3 {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .game-info-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .game-navigation h3 {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .other-game-info h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 10px;
    }
    
    .pixel-headline {
        font-size: 1.2rem;
    }
    
    .make-cool-games {
        font-size: 0.8rem;
        /* Fix mobile centering */
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .featured-card h3 {
        font-size: 0.9rem;
    }
    
    .featured-card p {
        font-size: 0.8rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .archive-title {
        font-size: 1.1rem;
    }
    
    .game-description h3 {
        font-size: 1rem;
    }
    
    .game-info-card h3 {
        font-size: 0.9rem;
    }
    
    .game-navigation h3 {
        font-size: 0.9rem;
    }
    
    /* Blog page extra small screen styles */
    .blog-page-container {
        padding: 15px 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-header {
        margin-bottom: 25px;
        padding: 20px 12px;
        max-width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        border-width: 1px;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blog-title {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
        margin-bottom: 12px;
        text-shadow: 
            1px 1px 0 #0a1a1a,
            1px 1px 0 #1a2a2a;
        padding: 0 8px;
    }
    
    .blog-description {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        margin-bottom: 0;
        padding: 0 8px;
    }
    
    .posts-grid {
        gap: 20px;
        padding: 0 8px;
        max-width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-meta {
        font-size: 0.75rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
    }
    
    .read-more {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Cube logo touch improvements for very small screens */
    .cube-logo-link {
        min-height: 70px;
        min-width: 70px;
        /* Ensure maximum touchability */
        z-index: 15;
    }
    
    .cube-logo {
        width: 50px;
        height: 50px;
    }
    
    /* Additional text wrapping for very small screens */
    .blog-title,
    .blog-description,
    .post-title,
    .post-meta,
    .post-excerpt,
    .section-title {
        font-size: 0.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}
