/* ============================================
   RETRO WORLD CHAMPS - MAIN STYLESHEET
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Keep the fallback color */
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed; /* This stays still on mobile */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keeps it behind your content */
    
    background-image: url('/rwc-images/site_art/DGNoise.jpg');
    background-repeat: repeat; /* Tiles the image */
    
    /* Optional: Hardware acceleration for smoother scrolling on mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}



 ============================================
   HEADER STYLES (Updated with Logo)
   ============================================ */
header {
    background: #1a1a1a;
    border-bottom: 2px solid #00ffe0;
    padding: 20px;
    color: #fff;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.5em;
    color: #00ffe0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
}

.logo-text .tagline {
    font-size: 1em;
    color: #ffea00;
    font-style: italic;
    margin: 5px 0 0 0;
    letter-spacing: 0.5px;
    font-weight: normal;
}

header h1 {
    font-size: 1.2em;
    color: #00ffe0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

@media (min-width: 600px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-logo {
        width: 80px;
    }
    
    .logo-text .tagline {
        font-size: 1em;
    }
    
    nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        width: auto;
    }
    
    nav a {
        padding: 10px 12px;
    }
}

@media (max-width: 600px) {
    .logo-text h1 {
        font-size: 1.4em;
    }
    
    .header-logo {
        width: 50px;
    }
    
    .logo-text .tagline {
        font-size: 0.55em;
    }
}
/* ============================================
   NAVIGATION STYLES
   ============================================ */
nav {
    display: flex;
    flex-direction: row; /* Change from column to row */
    flex-wrap: wrap;     /* Allows items to move to a second row */
    justify-content: center; /* Centers the menu items */
    width: 100%;
    gap: 8px;            /* Adds a little space between buttons */
}

nav a {
    color: #e0e0e0;
    padding: 8px 12px;   /* Slightly smaller padding for mobile fit */
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    
    /* This ensures they take up roughly half the space (for 2 columns) */
    /* or 1/3 if you prefer. 'auto' lets them size to the text. */
    flex: 1 1 auto; 
    text-align: center;
    min-width: 120px;    /* Prevents them from getting too squished */
}
nav a:hover {
    color: #00ffe0;
    background: rgba(0, 255, 224, 0.1);
}

nav a[style*="text-decoration: underline"],
nav a[style*="color: #00ffe0"] {
    color: #00ffe0 !important;
    background: rgba(0, 255, 224, 0.2);
    border-left: 3px solid #00ffe0;
}

@media (min-width: 600px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        width: auto;
    }
    
    nav a {
        padding: 10px 12px;
    }
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
.login {
    background: #666666;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-left: auto;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login:hover {
    background: #00ffe0;
    color: #1a1a2e;
    border-color: #00ffe0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

main h2 {
    color: #00ffe0;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

main > p,
.intro-text {
    text-align: center;
    color: #ffea00;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* ============================================
   CONTAINER & CONTENT SECTIONS
   ============================================ */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid #00ffe0;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   STATS DISPLAY
   ============================================ */
.stats {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #ffea00;
}

/* ============================================
   SEARCH BAR
   ============================================ */
input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #00ffe0;
    border-radius: 6px;
    margin-bottom: 40px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus {
    border-color: #00ffe0;
    box-shadow: 0 0 10px rgba(0, 255, 224, 0.2);
}

input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 1em;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00ffe0;
    box-shadow: 0 0 10px rgba(0, 255, 224, 0.3);
}

label {
    color: #00ffe0;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

/* ============================================
   CHAMPION LIST STYLES
   ============================================ */
ul#champion-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

ul#champion-list li {
    background: rgba(26, 26, 26, 0.8);
    border-left: 4px solid #00ffe0;
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.2s, background 0.3s;
}

ul#champion-list li:hover {
    transform: translateY(-5px);
    background: #252525;
}

ul#champion-list li a {
    color: #00ffe0;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   GAME ICONS
   ============================================ */
.game-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.game-icons img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.game-icons img:hover {
    transform: scale(1.2);
    border-color: #00ffe0;
}

/* ============================================
   CHAMPION PROFILE - SYSTEM BLOCKS
   ============================================ */
.system-block {
    margin-bottom: 20px;
    border-left: 4px solid #00ffe0;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
}

.system-header {
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-header:hover {
    background: #252525;
}

.games-container {
    display: none;
    padding: 20px 0 10px 30px;
}

/* ============================================
   CHAMPION PROFILE - GAME BLOCKS
   ============================================ */
.game-block {
    margin-bottom: 25px;
}

.game-banner {
    cursor: pointer;
    text-align: left;
    display: inline-block;
}

.game-banner img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    border: 1px solid #333;
}

.game-banner:hover img {
    border-color: #00ffe0;
}

/* ============================================
   CHAMPION PROFILE - AWARDS
   ============================================ */
.awards-container {
    display: none;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 10px;
}

.award-entry {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #222;
    padding: 15px;
    border-radius: 6px;
    position: relative;
}

.award-image-container {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.award-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.award-meta {
    flex-grow: 1;
    font-size: 0.9rem;
}

.award-name {
    font-weight: bold;
    color: #00ffe0;
    font-size: 1.1rem;
}

/* ============================================
   SHARE BUTTON
   ============================================ */
.share-btn {
    background: #333;
    color: #00ffe0;
    border: 1px solid #00ffe0;
    padding: 5px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 5px;
}

.share-btn:hover {
    background: #00ffe0;
    color: #000;
}

/* ============================================
   MODAL (Award Image Viewer)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    text-align: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 70%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #00ffe0;
}

#caption {
    position: absolute;
    bottom: 5%;
    width: 100%;
    text-align: center;
    color: #00ffe0;
    font-size: 1.8rem;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: #00ffe0;
    border: 1px solid #00ffe0;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #00ffe0;
    color: #000;
}

/* ============================================
   IMAGES
   ============================================ */
#centeredImage,
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================
   LINKS & BUTTONS
   ============================================ */
a {
    color: #00ffe0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

a b {
    color: #00ffe0;
}

/* Generic button styles */
.btn,
button:not([class*="stripe"]):not([class*="buy"]):not(.share-btn) {
    background: #00ffe0;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.btn:hover,
button:not([class*="stripe"]):not([class*="buy"]):not(.share-btn):hover {
    background: #ff6b9d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 224, 0.3);
}

/* ============================================
   ACHIEVEMENT BADGES
   ============================================ */
.achievement-levels {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bronze { 
    background: #cd7f32; 
    color: #000; 
}

.silver { 
    background: #c0c0c0; 
    color: #000; 
}

.gold { 
    background: #ffd700; 
    color: #000; 
}

.platinum { 
    background: linear-gradient(135deg, #e5e5e5, #a8a8a8); 
    color: #000; 
}

/* ============================================
   VIDEO EMBEDS
   ============================================ */
iframe {
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FORMS
   ============================================ */
form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #1a1a1a;
    border-top: 2px solid #00ffe0;
    color: #fff;
    padding: 20px;
    margin-top: 50px;
}

footer nav {
    justify-content: center;
}

footer a {
    color: #00ffe0;
}

footer a:hover {
    color: #ff6b9d;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: #737373;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.bold { font-weight: bold; }

/* ============================================
   UNDER CONSTRUCTION
   ============================================ */
.under-construction {
    text-align: center;
    padding: 60px 20px;
}

.under-construction img {
    max-width: 400px;
}

/* ============================================
   STRIPE BUY BUTTON WRAPPER
   ============================================ */
stripe-buy-button {
    display: block;
    margin: 20px auto;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2col,
.grid-3col {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-2col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3col {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
    .logo h1 {
        font-size: 1.4em;
    }
    
    main h2 {
        font-size: 1.5em;
    }
    
    .container,
    .section {
        padding: 20px;
    }
    
    iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    #caption {
        font-size: 1.2rem;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}