/* ============================================================
   MODFORGE - MAIN STYLESHEET
   Gaming Mods & Tools Platform
   ------------------------------------------------------------
   TABLE OF CONTENTS:
   1. CSS Variables & Reset
   2. Base Styles & Typography
   3. Header & Navigation
   4. Hero Section
   5. Section Layouts & Cards
   6. Mod/Addition/Tool Cards
   7. Buttons & Interactive Elements
   8. Footer
   9. Modal Styles
   10. Animations & Effects
   11. Responsive Design
   12. Dynamic Background (NEW)
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & RESET
   Customize colors, spacing, and fonts here
   ============================================================ */
:root {
    /* Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-modal: #1e1e2a;
    --bg-input: #2a2a3a;
    
    /* Accent Colors - Changed from Red to Pink */
    --accent-red: #fd79a8;              /* Was #e63946 */
    --accent-red-hover: #ff9ff3;        /* Was #ff4757 - Lighter pink */
    --accent-red-glow: rgba(253, 121, 168, 0.3);  /* Was rgba(230, 57, 70, 0.3) */
    --accent-orange: #ff6b9d;           /* Was #ff6b35 - Pinkish orange */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #888899;
    --text-dark: #333344;
    
    /* Border & Shadow */
    --border-color: #2a2a3a;
    --border-hover: #3a3a4a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--accent-red-glow);
    
    /* Typography */
    --font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: #ffffff;
    background-color: #0f0f12; /* Fallback color */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fd79a8;
}

.btn-favorite.favorited {
    background: #fd79a8;
    border-color: #fd79a8;
}

.notification {
    background: #fd79a8;
    box-shadow: 0 0 20px rgba(253, 121, 168, 0.5);
}

/* ============================================================
   2. BASE STYLES & TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Combined image styles (base + protection) */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    pointer-events: auto;
}

/* Glassmorphism Protection Toast */
.protection-toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    
    /* Dark Glassmorphism Effect */
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    
    /* Glowing Crimson Accent Border */
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.6),
        0 0 15px rgba(220, 38, 38, 0.25);
    
    color: #f1f5f9;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    
    /* Layout */
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
    
    /* Smooth Transition */
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Toast Active State */
.protection-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Icon Styling inside Toast */
.protection-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
}

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85); /* Semi-transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 58, 0.6);
    transition: all var(--transition-medium);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: transform var(--transition-fast);
}

.brand:hover {
    transform: translateY(-2px);
}

.brand-icon {
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.brand-text {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-red);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fd79a8;
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-special {
    color: #fd79a8;  /* Pink instead of red */
    font-weight: 600;
}

.nav-link-special:hover {
    color: #ff9ff3;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--spacing-xs);
    gap: 5px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Favorites Button */
.favorites-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.favorites-btn:hover {
    transform: scale(1.1);
}

.favorites-count {
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    overflow: hidden;
    padding-top: 70px;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero-accent {
    color: var(--accent-red);
    text-shadow: 0 0 30px var(--accent-red-glow);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ============================================================
   5. SECTION LAYOUTS
   ============================================================ */
.section {
    padding: var(--spacing-2xl) 0;
    background: transparent !important;
}

.section-alt {
    background: transparent !important;
}

.section-highlight {
    background: transparent !important;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Game Categories */
.game-categories {
    padding: var(--spacing-md) 0;
}

.game-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.game-category-card {
    background: rgba(26, 26, 36, 0.85);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.game-category-card:hover,
.game-category-card.active {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.game-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.game-name {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.game-mod-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Filter Section */
.filter-section {
    padding: var(--spacing-md) 0;
}

.filter-bar {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    background: rgba(26, 26, 36, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.filter-select {
    background: rgba(26, 26, 36, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new {
    left: 10px;
    background: #fd79a8;
    color: white;
    box-shadow: 0 0 15px rgba(253, 121, 168, 0.6);
}

.badge-updated {
    left: 10px;
    background: #a29bfe;
    color: white;
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.6);
}

.badge-featured {
    left: 10px;
    background: linear-gradient(135deg, #fd79a8, #a29bfe);
    color: white;
}

.badge-date {
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-secondary);
}

/* ============================================================
   6. MOD/ADDITION/TOOL CARDS
   ============================================================ */
.mod-card {
    background: rgba(26, 26, 36, 0.85); /* Semi-transparent card background */
    border: 1px solid rgba(42, 42, 58, 0.8);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}

.mod-card:hover {
    background: rgba(34, 34, 46, 0.9);
    border-color: rgba(253, 121, 168, 0.5);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(253, 121, 168, 0.2);
}

/* Card Image */
.mod-card-image {
    position: relative;
    height: 200px;
    background: var(--mod-img-bg, linear-gradient(135deg, #1a1a2e, #2d2d44));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mod-card-image-placeholder {
    font-size: 4rem;
    opacity: 0.7;
    transition: transform var(--transition-medium);
}

.mod-card:hover .mod-card-image-placeholder {
    transform: scale(1.2);
}

/* Card Body */
.mod-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mod Name with Hover Effect */
.mod-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-medium);
    cursor: default;
    position: relative;
}

.mod-card-name:hover {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    color: var(--accent-red);
    z-index: 10;
}

/* Card Metadata */
.mod-card-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.meta-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item strong {
    color: var(--text-primary);
}

/* Card Rating */
.mod-card-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Ported By Tags */
.ported-by-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.ported-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.tag {
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.3);
    color: var(--accent-red);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(253, 121, 168, 0.2);
    border-color: var(--accent-red);
}

/* ============================================================
   7. BUTTONS & INTERACTIVE ELEMENTS
   ============================================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #fd79a8;  /* Pink background */
    color: white;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-red-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
}

.btn-card {
    background: var(--bg-input);
    color: var(--text-primary);
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.btn-card:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-favorite.favorited {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-copy {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: #28a745;
    border-color: #28a745;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
    background: rgba(18, 18, 26, 0.85); /* Semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(42, 42, 58, 0.6);
    padding: var(--spacing-xl) 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-brand {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fd79a8;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    width: 100%;
    text-align: center;
}

/* ============================================================
   9. MODAL STYLES
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 30, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-medium);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: #fd79a8;
    background: rgba(253, 121, 168, 0.1);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Creator Cards (Welcome Modal) */
.creator-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-medium);
}

.creator-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

/* Creator Card Photos - Purple/Pink Theme */
.creator-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, #a29bfe, #fd79a8);  /* Purple to Pink gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #6c5ce7;  /* Purple border */
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.4);  /* Purple glow */
    transition: all 0.3s ease;
}

.creator-photo:hover {
    border-color: #fd79a8;  /* Pink border on hover */
    box-shadow: 0 0 30px rgba(253, 121, 168, 0.6);  /* Pink glow on hover */
    transform: scale(1.05);
}

.creator-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.creator-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.creator-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Requests Modal Content */
.requests-content {
    color: var(--text-secondary);
}

.requests-description {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.discord-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.discord-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.discord-item:hover {
    border-color: var(--accent-red);
    background: var(--bg-card-hover);
}

.discord-icon {
    font-size: 1.5rem;
}

.discord-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.discord-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.discord-username {
    font-weight: 600;
    color: var(--text-primary);
}

.alt-contact {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.alt-contact a {
    color: var(--accent-red);
    font-weight: 600;
}

.alt-contact a:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

/* Favorites Drawer */
.favorites-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.favorites-drawer.active {
    right: 0;
}

.favorites-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.favorites-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.favorites-close:hover {
    color: var(--accent-red);
}

.favorites-drawer-content {
    padding: var(--spacing-md);
}

.favorites-empty {
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.favorite-icon {
    color: var(--accent-red);
}

.favorite-name {
    flex: 1;
    font-size: 0.9rem;
}

.favorite-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.favorite-remove:hover {
    color: var(--accent-red);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-red);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   10. ANIMATIONS & EFFECTS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================================
   11. RESPONSIVE DESIGN
   ============================================================ */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium);
    }
    
    .main-nav.active {
        max-height: 400px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .creator-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: var(--spacing-md);
        width: 95%;
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .creator-cards {
        grid-template-columns: 1fr;
    }
    
    .discord-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .favorites-drawer {
        width: 100%;
    }
}

/* ============================================================
   12. DYNAMIC BACKGROUND (UPDATED)
   ============================================================ */

/* Fixed Background Container */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: url('../img/background/back1.png') no-repeat center center / cover;
}

/* Full Viewport Background Wrapper */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;                      /* Behind everything else */
    overflow: hidden;
    background: url('../img/background/back1.png') no-repeat center center / cover;
}

/* Balanced Atmospheric Vignette Overlay */
.bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Balanced opacity to show artwork while keeping dark edges */
    background: radial-gradient(circle at center, rgba(15, 15, 18, 0.25) 0%, rgba(8, 8, 10, 0.75) 100%);
    pointer-events: none;
}

/* Dark Overlay for Text Readability */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 15, 18, 0.6), rgba(15, 15, 18, 0.7));
    z-index: 1;
    pointer-events: none;
}

/* Red Dust Canvas Layer */
#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

/* Ambient Canvas for Snow + Orbs */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}


/* ============================================================
   EYE GLOW EFFECTS (Fixed Alignment - No Full Blink)
   ============================================================ */

/* Container to keep eye positions synced with the background */
.eyes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
}

/* Base style for individual eye glow */
.eye-glow {
    position: absolute;
    width: 99px;  /* Adjust width to match pupil size */
    height: 62px; /* Adjust height to match pupil size */
    background: radial-gradient(ellipse at center, 
                rgba(255, 0, 40, 0.9) 0%, 
                rgba(220, 38, 38, 0) 75%);
    mix-blend-mode: screen;
    border-radius: 50%;
    pointer-events: none;
    animation: slowPulse 6s infinite ease-in-out;
}

/* Left Eye Position */
.eye-glow.left {
    top: 37.5%;
    left: 41.8%;
}

/* Right Eye Position */
.eye-glow.right {
    top: 37.5%;
    left: 56.1%;
}

/* Slow Pulse Keyframes (Eyes never fully close) */
@keyframes slowPulse {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 0, 40, 0.8));
    }
    25% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 18px rgba(255, 0, 40, 1));
    }
    50% {
        /* Subtle dim - never goes below 0.5 opacity */
        opacity: 0.5;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px rgba(255, 0, 40, 0.5));
    }
    75% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 0, 40, 0.9));
    }
}

/* ============================================================
   PAGE FADE TRANSITIONS
   ============================================================ */

/* Fade in effect on page load */
body {
    opacity: 0;
    animation: pageFadeIn 0.6s ease-in-out forwards;
}

/* Fade in keyframes */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade out effect for navigation (applied via JS) */
body.page-fade-out {
    opacity: 1;
    animation: pageFadeOut 0.4s ease-in-out forwards;
}

/* Fade out keyframes */
@keyframes pageFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Smooth fade for all interactive elements */
a, button, .btn, .mod-card, .game-category-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Optional: Fade in sections as they appear */
.section {
    animation: sectionFadeIn 0.8s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   PROFILE CARDS & REQUEST FORM (Requests Page)
   ============================================================ */

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Glassmorphism Profile Cards */
.profile-card {
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.25);
    transform: translateY(-2px);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(220, 38, 38, 0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.profile-role {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Skill Badges */
.badge-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.skill-badge {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Profile Contact */
.profile-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.discord-username {
    font-weight: 600;
    color: #fff;
    margin-right: auto;
}

/* Mod Request Form Styling */
.request-form-container {
    max-width: 750px;
    margin: 40px auto 0 auto;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 500;
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-request {
    background: #dc2626;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-submit-request:hover {
    background: #b91c1c;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}