/* =========================================
   FunSlop.com - Premium AI Sludge
   ========================================= */

:root {
    --bg-dark: #090b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-green: #39ff14;
    --neon-purple: #bd00ff;
    --text-primary: #f0f4f8;
    --text-muted: #8b9bb4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Glow Effect */
.glow-bg {
    position: fixed;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(50px);
    animation: float 10s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* =========================================
   Header & Navigation
   ========================================= */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(9, 11, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.highlight {
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-green);
}

.status-badge {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(57, 255, 20, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* =========================================
   Banner Ads (Placeholders)
   ========================================= */
.banner-ads {
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    margin: 1rem 0;
    position: relative;
    border: 1px dashed var(--glass-border);
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding-top: 2rem;
}

.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--glass-border);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-bottom-right-radius: 6px;
    color: var(--text-muted);
}

.ad-frame {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-mock p {
    color: var(--text-primary);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   Layout & Container
   ========================================= */
.container {
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Game Grid & Cards
   ========================================= */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 0, 255, 0.4);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.1);
}

.card-image {
    height: 160px;
    background: #151821;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Dynamic background gradients for mockup thumbs */
.tictactoe-bg { background: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%); }
.clicker-bg { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }
.falling-bg { background: linear-gradient(135deg, #F09819 0%, #EDDE5D 100%); }
.adventure-bg { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }

.card-icon {
    font-size: 3rem;
    opacity: 0.4;
    color: white;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-purple);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.card-badge.new {
    background: var(--neon-green);
    color: black;
}

.card-info {
    padding: 1.2rem;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 38px;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.tags {
    color: var(--neon-green);
    font-size: 0.75rem;
    font-family: monospace;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
}

.game-card:hover .play-btn {
    background: var(--neon-purple);
}

/* =========================================
   Sidebar
   ========================================= */
.sidebar-ad {
    height: calc(100% - 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.sidebar-ad .ad-frame {
    height: 100%;
    min-height: 400px;
}

/* =========================================
   Inline Game Viewer
   ========================================= */
.game-container {
    display: none;
    width: 100%;
    padding: 0 5%;
    margin: 2rem 0;
    height: calc(100vh - 220px);
    min-height: 800px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.modal-header h2 {
    font-size: 1.1rem;
    color: var(--neon-green);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--neon-purple);
}

.game-view-container {
    width: 100%;
    flex-grow: 1;
}

#game-iframe {
    width: 100%;
    height: 100%;
}
