/*
    QUENQQ Stylesheet
    GTA Vice City Neon Theme
*/
/* Google Fonts loaded via <link> tags in HTML with preconnect for optimal performance */

/* CSS Variables — GTA Vice City Neon */
:root {
    --bg-body: #0a0a0a;
    --bg-wrapper: #111111;
    --bg-content: #151515;
    --bg-nav: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #ff2d95;
    --accent-hover: #ff5cb0;
    --accent-dark: #c9006e;
    --border-color: #2a2a2a;
    --bg-footer: #080808;
    --neon-glow: 0 0 10px rgba(255, 45, 149, 0.3), 0 0 20px rgba(255, 45, 149, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Russo One', 'Impact', sans-serif;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* 1. Global Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.global-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    max-width: 80px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Content info paragraphs */
.cnt-info p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.cnt-info p:last-child {
    margin-bottom: 0;
}
.cnt-info ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 15px;
}
.cnt-info ul li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Action button SVG icons */
.action-btn svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    fill: currentColor;
}
.player-controls .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Layout Structure */
#wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--bg-wrapper);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Header */
#head {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
#logo {
    margin-right: 20px;
    display: flex;
    align-items: center;
}
#logo img {
    height: 44px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}
#head-mid {
    display: flex;
    flex-direction: column;
}
.header-line1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin: 0;
    line-height: 1.2;
    text-shadow: var(--neon-glow);
    letter-spacing: 1px;
}
.header-line2 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
}

/* 3. Navigation */
#nav-H {
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
}
#butn-block {
    padding: 10px 20px;
}
#butn-block ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#butn-block ul li a.Butn1 {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.2s;
}
#butn-block ul li a.Butn1:hover,
#butn-block ul li a.Butn1.active-nav {
    background-color: var(--accent);
    color: #fff;
}

/* Main Content Area */
#main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    flex: 1;
    align-items: flex-start;
}

/* App container spans full width above columns */
.app-container {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#col-L {
    width: 69%;
}

#col-R {
    width: 29%;
}

/* 4. Content Boxes */
.cnt-box {
    background-color: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.cnt-head {
    background-color: rgba(0,0,0,0.3);
    padding: 12px 15px;
    border-bottom: 2px solid var(--accent);
}
.cnt-head h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0;
    color: var(--accent);
    text-shadow: var(--neon-glow);
}
.cnt-filler {
    padding: 15px;
}
.cnt-ft {
    background-color: rgba(0,0,0,0.15);
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 5. Sidebar Boxes */
.nav-box {
    background-color: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.nav-head {
    background-color: rgba(0,0,0,0.15);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}
.nav-head h5 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}
.nav-filler {
    padding: 15px;
}
.nav-links ul li {
    margin-bottom: 8px;
}
.nav-links ul li:last-child {
    margin-bottom: 0;
}
.nav-links ul li a {
    display: block;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.nav-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}
.nav-ft {
    background-color: rgba(0,0,0,0.15);
    padding: 8px 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* 6. Game/App Cards */
#apps-grid, .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.apps-card, .game-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 140px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.apps-card:hover, .game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border-color: var(--accent);
}
.apps-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.apps-card-overlay-hero {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form .action-btn {
    margin-top: 10px;
}

/* Controls Table */
.controls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.controls-table th,
.controls-table td {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.controls-table th {
    background: rgba(0,0,0,0.2);
    color: var(--accent);
    font-weight: 600;
}
.controls-table td {
    color: var(--text-secondary);
}
.controls-table kbd {
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    color: var(--text-primary);
}
.apps-card-content, .game-card h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    z-index: 2;
}
.apps-card-content h2, .game-card h2 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: #fff;
}
.apps-card-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-secondary);
}

/* 7. iframe & player controls (app-container defined above in layout section) */
#app-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 85vh;
    border: none;
    display: block;
    background: #000;
}
.player-controls {
    background-color: var(--bg-nav);
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

/* 11. Action Buttons */
.action-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-main);
    transition: background-color 0.2s;
}
.action-btn:hover {
    background-color: var(--accent-dark);
}

/* 8. Fullscreen Pseudo Mode */
html.pseudo-fullscreen-active {
    overflow: hidden;
}
.is-pseudo-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border: none !important;
    border-radius: 0 !important;
}
.is-pseudo-fullscreen #app-iframe {
    height: calc(100vh - 50px) !important; /* adjust for controls height */
}
.pseudo-exit-btn {
    display: none;
    background-color: #d32f2f;
}
.pseudo-exit-btn:hover {
    background-color: #b71c1c;
}
.is-pseudo-fullscreen .pseudo-exit-btn {
    display: inline-flex;
}
.is-pseudo-fullscreen #app-iframe {
    aspect-ratio: unset;
    max-height: unset;
    height: calc(100vh - 46px);
}

/* 9. FAQ Accordion */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
/* .faq-question / .faq-answer removed — HTML uses native <details>/<summary> elements */

/* 10. Footer */
#footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    margin-top: auto;
}
#foot-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.footer-column {
    display: flex;
    flex-direction: column;
}
.ft-title {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}
.ft-links ul li {
    margin-bottom: 8px;
}
.ft-links ul li a {
    color: var(--text-secondary);
}
.ft-links ul li a:hover {
    color: var(--accent);
}

/* 13. Miscellaneous */
.home-section-header {
    margin-bottom: 15px;
}
.home-section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 12. Responsive Design */
@media screen and (max-width: 768px) {
    #main {
        flex-direction: column;
    }
    #col-L, #col-R {
        width: 100%;
    }
    #head {
        flex-direction: column;
        text-align: center;
    }
    #logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    #nav-H #butn-block ul {
        justify-content: center;
    }
    #apps-grid, .game-grid {
        grid-template-columns: 1fr;
    }
    #foot-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #app-iframe {
        max-height: 60vh;
    }
}


