/* 
 _____ _   _ _   _    _    _   _  ____ _____ ____  
| ____| \ | | | | |  / \  | \ | |/ ___| ____|  _ \ 
|  _| |  \| | |_| | / _ \ |  \| | |   |  _| | | | |
| |___| |\  |  _  |/ ___ \| |\  | |___| |___| |_| |
|_____|_| \_|_| |_/_/   \_\_| \_|\____|_____|____/ 
                                                
    POWERED BY GETTODEV SINCE 1998
    Indie Game Development Studio - Retro Indie Games
    
    ===== MINIMALIST RETRO ARCADE STYLE =====
*/

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

/* Custom Retro Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #111111;
    border-left: 2px solid #333333;
}

::-webkit-scrollbar-thumb {
    background: #00ffff;
    border: 2px solid #111111;
}

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

body {
    font-family: 'Courier New', 'Fira Code', monospace;
    background-color: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle Static Scanlines - No bright animation */

/* Solid Flat Retro Colors (No Blurry Glow) */
.neon-cyan {
    color: #00ffff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.neon-yellow {
    color: #ffff00;
    font-weight: bold;
    letter-spacing: 1px;
}

.neon-green {
    color: #00ff00;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.neon-pink {
    color: #ff00ff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Minimalist Header */
header {
    background-color: #111111;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #00ffff;
}

header img {
    max-width: 100%;
    filter: grayscale(10%) contrast(1.1);
}

/* Minimalist Navigation */
nav {
    background-color: #0a0a0a;
    border-bottom: 2px solid #333333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul, #sidebar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav li, #sidebar li {
    margin: 0;
}

nav a, #sidebar a {
    display: block;
    padding: 15px 25px;
    color: #cccccc;
    text-decoration: none;
    border-right: 1px solid #333333;
    transition: background 0.2s, color 0.2s;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9em;
}

nav a:hover, #sidebar a:hover, nav a.active {
    background-color: #00ffff;
    color: #000000;
}

nav a:last-child, #sidebar a:last-child {
    border-right: none;
}

/* Cafecito Button */
.menu-cafecito {
    display: flex;
    align-items: center;
}

.menu-cafecito a.cafecito-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-right: none;
}

.menu-cafecito a.cafecito-link:hover {
    background-color: transparent;
    opacity: 0.85;
}

.menu-cafecito img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111111;
    border: 1px solid #333;
    border-top: none;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

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

.dropdown-menu a {
    padding: 12px 20px;
    color: #cccccc;
    text-decoration: none;
    display: block;
    border: none;
}

.dropdown-menu a:hover {
    background-color: #ff00ff;
    color: #000000;
}

/* Main Content Area */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #00ffff;
    font-weight: bold;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: bold;
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #cccccc;
    font-size: 1.05em;
}

a {
    color: #00ffff;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #ff00ff;
}

/* Minimalist Divider */
.divider {
    height: 1px;
    background-color: #333333;
    margin: 40px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff00ff;
}

/* Game Grid Restyling */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
}

.game-grid.dev-games {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1040px;
}

.game-item {
    text-align: center;
}

/* Gaming Thumbnails */
.game-button {
    display: block;
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
    overflow: visible;
    text-decoration: none;
    z-index: 1;
}

.game-button img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated; /* Enhances retro feel */
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.game-button:hover {
    z-index: 5;
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffff00;
    color: #000000;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #000000;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.game-button:hover .play-overlay {
    opacity: 1;
}

/* Game Layout (iframe & controls) */
.game-layout {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 1300px;
    align-items: flex-start;
}

.game-container {
    width: 1024px;
    height: 768px;
    margin: 0;
    border: 2px solid #333333;
    background: #000000;
    box-sizing: border-box;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.controls-panel {
    width: 280px;
    height: 768px;
    background-color: #111111;
    border: 2px solid #333333;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.controls-panel h3 {
    color: #00ffff;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.controls-content {
    flex: 1;
    overflow-y: auto;
}

.control-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #1a1a1a;
    border-left: 4px solid #00ff00;
}

.control-key {
    color: #00ff00;
    font-weight: bold;
    display: inline-block;
    margin-right: 12px;
    padding: 4px 10px;
    background-color: #000000;
    border: 1px solid #00ff00;
    font-size: 0.9em;
    text-transform: uppercase;
}

.control-desc {
    color: #cccccc;
    font-size: 14px;
    margin-top: 10px;
}

.game-wrapper {
    flex: 1;
}

/* Flat Universal Button */
.back-button, .button {
    display: inline-block;
    margin: 25px auto;
    padding: 12px 25px;
    background-color: #ffff00;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    border: 2px solid #000000;
    transition: background-color 0.2s, color 0.2s;
}

.back-button:hover, .button:hover {
    background-color: #00ffff;
    color: #000000;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #111111;
    border: 1px solid #333333;
}

.contact-section h3 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section div {
    margin: 15px 0;
}

/* Sharp, Minimalist Game Hero Sections */
.game-hero {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background-color: #111111;
    border: 1px solid #333333;
}

.game-hero__image {
    width: 300px;
    height: 300px;
    border: 2px solid #00ffff;
    object-fit: cover;
    background-color: #000000;
    image-rendering: pixelated;
}

.game-hero__content {
    flex: 1;
}

.game-hero__content h3 {
    margin-bottom: 20px;
}

/* Large Hero overrides (Maidhen) */
.game-hero-large .game-hero__image {
    width: 400px;
    height: 533px;
    object-fit: contain;
}

/* Landscape Hero (Pies Frescos) */
.game-hero-landscape .game-hero__image {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    border: 2px solid #333333;
}

/* Feature Grid with Sharp Borders */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background-color: #111111;
    border: 1px solid #333333;
    padding: 25px;
    text-align: center;
}

.feature-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border: 2px solid #222222;
    margin-bottom: 20px;
    image-rendering: pixelated;
}

.feature-card h4 {
    color: #ff00ff;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.2em;
}

/* Row-based Features for Landscape Images */
.feature-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.feature-card-landscape {
    background-color: #111111;
    border: 1px solid #333333;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.feature-card-landscape img {
    flex: 0 0 45%;
    max-width: 45%;
    margin-bottom: 0;
    border: 2px solid #222222;
}

.feature-card-landscape .card-content {
    flex: 1;
}

/* Team Section Minimalist */
.team-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background-color: #111111;
    border: 1px solid #333333;
}

.team-hero__image {
    width: 200px;
    height: 200px;
    border: 2px solid #ff00ff;
    object-fit: cover;
    image-rendering: pixelated;
}

.team-hero__content {
    flex: 1;
}

.team-hero__content strong {
    color: #00ff00;
}

/* Clean Legacy Section */
.legacy-section {
    margin: 40px 0;
    padding: 40px 20px;
    background-color: #111111;
    border: 1px solid #333333;
    text-align: center;
}

.legacy-section h1 {
    color: #ffffff;
    margin-bottom: 25px;
}

.legacy-section h3 {
    color: #ff00ff;
}

/* Solid Flat Footer */
footer {
    background-color: #0a0a0a;
    border-top: 2px solid #333333;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 30px;
}

footer img {
    margin: 0 10px 15px 10px;
    max-width: 80px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.2s, opacity 0.2s;
}

footer img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Music Player Widget */
#music-bar {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background-color: #111111;
    border: 2px solid #333333;
    padding: 6px 15px;
    z-index: 20;
}

#music-bar .status-lcd {
    color: #555555;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#music-bar .status-lcd.playing {
    color: #00ffff;
    animation: blink-soft 2s infinite;
}

@keyframes blink-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#music-bar button {
    background-color: #000000;
    color: #ff00ff;
    border: 1px solid #ff00ff;
    padding: 4px 10px;
    margin-left: 5px;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#music-bar button:hover {
    background-color: #ff00ff;
    color: #000000;
}

/* Fullscreen Button */
.fullscreen-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 15px auto 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00ffff, #0088cc);
    color: #000000;
    border: 2px solid #00ffff;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    border-color: #00ff00;
    box-shadow: 
        0 0 15px rgba(0, 255, 0, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.fullscreen-btn:active {
    transform: translateY(0);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
    border-radius: 8px !important;
    transition: opacity 0.3s ease !important;
}

/* Fullscreen Mode Styles */
.game-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: none !important;
}

.game-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: none !important;
}

.game-container:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: none !important;
}

.game-container:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: none !important;
}

/* Hide elements in fullscreen */
:fullscreen .controls-panel,
:-webkit-full-screen .controls-panel,
:-moz-full-screen .controls-panel,
:-ms-fullscreen .controls-panel {
    display: none !important;
}

:fullscreen header,
:-webkit-full-screen header,
:-moz-full-screen header,
:-ms-fullscreen header {
    display: none !important;
}

:fullscreen footer,
:-webkit-full-screen footer,
:-moz-full-screen footer,
:-ms-fullscreen footer {
    display: none !important;
}

:fullscreen .game-controls,
:-webkit-full-screen .game-controls,
:-moz-full-screen .game-controls,
:-ms-fullscreen .game-controls {
    display: none !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .fullscreen-btn {
        font-size: 1em;
        padding: 10px 15px;
        max-width: 250px;
    }
    
    .game-controls {
        text-align: center;
        position: relative;
        z-index: 1001;
    }
}

/* Responsive Structural Adjustments */
@media (max-width: 1044px) {
    .game-container {
        width: 100%;
        max-width: 1024px;
        height: auto;
        aspect-ratio: 1024/768;
    }
    
    .game-layout {
        flex-direction: column;
    }
    
    .controls-panel {
        width: 100%;
        height: auto;
        max-height: none;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #music-bar {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        justify-content: center;
        border-left: none;
        border-right: none;
        border-top: none;
        z-index: 20;
    }
    
    #hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: #111111;
        border: none;
        border-bottom: 1px solid #333333;
        color: #00ffff;
        padding: 12px 20px;
        font-family: 'Courier New', monospace;
        font-size: 1em;
        font-weight: bold;
        letter-spacing: 2px;
        cursor: pointer;
        text-transform: uppercase;
    }

    #hamburger-btn:hover {
        background-color: #1a1a1a;
    }

    #nav-links-wrapper {
        display: none;
        width: 100%;
    }

    #nav-links-wrapper.open {
        display: block;
    }

    nav ul, #sidebar ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    nav li, #sidebar li {
        width: 100%;
        display: block;
    }
    
    nav a, #sidebar a {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333333;
        border-right: none !important;
        display: block;
        box-sizing: border-box;
    }
    
    main {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .game-grid, .game-grid.dev-games {
        grid-template-columns: 1fr;
    }
    
    .game-hero, .game-hero-landscape, .team-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .game-hero__image, .game-hero-landscape .game-hero__image, .team-hero__image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    
    .game-hero__content, .team-hero__content, .feature-card-landscape .card-content {
        text-align: center;
        width: 100%;
    }
    
    .feature-card-landscape {
        flex-direction: column;
        padding: 20px;
    }
    
    .feature-card-landscape img {
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        text-align: center;
        border: none;
        border-bottom: 1px solid #333333;
    }
}

@media (max-width: 480px) {
    nav a, #sidebar a {
        flex: 1 1 100%;
        border-right: none;
    }
    
    .control-item {
        padding: 10px;
    }
    
    footer img {
        max-width: 60px;
    }
}
