@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;800&display=swap');

/* Wistrade Modern Retro Theme - v2.1 */
:root {
    --dc-orange: #FF6600;
    --dc-red: #E50012;
    --dc-blue: #0055A4;
    --bg-light: #f0f2f5;
    --glass: rgba(255, 255, 255, 0.9);
    --text-main: #333;
    --text-muted: #666;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-light);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.05) 0%, transparent 20%);
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}

/* HEADER & LOGO */
header {
    background: linear-gradient(135deg, var(--dc-orange), var(--dc-red));
    color: white;
    padding: 4rem 1rem 5rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

.logo-retro {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    /* Constrain the height to keep it horizontal and sleek */
    height: auto;
    max-height: 120px; 
    /* This ensures any remaining background color in the image matches the header */
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.logo-retro:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

/* SEARCH NAVIGATION */
.search-container {
    max-width: 600px;
    margin: -40px auto 30px;
    padding: 0 1rem;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

#gameSearch {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

#gameSearch:focus {
    transform: scale(1.03);
    border-color: var(--dc-orange);
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.2);
}

/* CONTENT CONTAINER & CARDS */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.cheat-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-out forwards;
}

.cheat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.12);
}

.cheat-card h2 {
    color: var(--dc-orange);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.cheat-item {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 102, 0, 0.04);
    border-left: 4px solid var(--dc-orange);
    border-radius: 4px 12px 12px 4px;
    transition: background 0.2s;
}

.cheat-item:hover {
    background: rgba(255, 102, 0, 0.08);
}

.cheat-title {
    font-weight: 800;
    display: block;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.cheat-code {
    font-family: 'Courier New', Courier, monospace;
    color: #c62828;
    word-wrap: break-word;
    font-size: 1.05rem;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* UTILITIES & ANIMATIONS */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dc-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.98; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    header { padding: 3rem 1rem 4rem; }
    .logo-retro { width: 300px; }
    .cheat-card { padding: 20px; }
    .search-container { margin-top: -30px; }
}