/* ============================================================
   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 */
/* Force proper spacing in navbar links */
.main-nav ul.nav-list,
.nav-links {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul.nav-list li,
.nav-links a {
    white-space: nowrap;          /* Prevent text from breaking into multiple lines */
    flex-shrink: 0;               /* Prevent links from being squeezed */
}

.nav-links a.active,
.main-nav .nav-link.active {
    color: #ff2b6d !important;    /* Accent color for active page */
    font-weight: bold;
}

.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;
}

/* ============================================================
   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);
}


/* ============================================================
   FAVORITES SYSTEM STYLES
   ============================================================ */

/* Favorite Button Base */
.fav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #888;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fav-btn:hover {
    border-color: #ff3366;
    color: #ff3366;
}

/* Active (favorited) state */
.fav-btn.active {
    border-color: #ff3366;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.15);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* Heart icon */
.heart-icon {
    transition: transform 0.2s ease;
}

.fav-btn.active .heart-icon {
    transform: scale(1.2);
}

/* Navbar counter badge */
.nav-fav-count {
    background: #ff3366;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    display: inline-block;
    margin-left: 4px;
}

/* Japanese Styled Maintenance Card */
.maintenance-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.maintenance-card {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    width: 100%;
    max-width: 680px;          /* Prevents card from growing too large */
    min-width: 320px;          /* Prevents card from shrinking too small */
}

.maintenance-title {
    font-family: 'Dela Gothic One', cursive, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(220, 38, 38, 0.7);
    margin-bottom: 20px;
}

.maintenance-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.kanji-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    font-family: 'Dela Gothic One', sans-serif;
    color: rgba(220, 38, 38, 0.04);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #f87171;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.9); }
}

/* Responsive tweak for mobile */
@media (max-width: 768px) {
    .maintenance-title {
        font-size: 1.6rem;
    }
    .kanji-watermark {
        font-size: 4rem;
    }
    .maintenance-card {
        padding: 30px 20px;
    }
}

/* Reuse the slowPulse keyframes (already present) */
@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% { 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)); }
}

/* Japanese Text Class (if you have any Japanese) */
.jp-title, .jp-text {
    font-family: 'Noto Sans JP', 'Dela Gothic One', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* English Main Title Class */
.main-title {
    font-family: 'Dela Gothic One', sans-serif;
    letter-spacing: 2px;
}

/* Body / Description Text Class */
.desc-text {
    font-family: 'Rajdhani', 'Noto Sans JP', sans-serif;
}

/* ============================================================
   MODS CATALOG – PURPLE/PINK GLASSMORPHISM
   ============================================================ */

.text-gradient-purple-pink {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    width: 100%;
}

.mod-card {
    background: rgba(18, 18, 24, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.4),
                0 0 20px 0px rgba(236, 72, 153, 0.25);
}

.mod-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mod-card:hover .mod-thumbnail {
    transform: scale(1.06);
}

.mod-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mod-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.mod-card:hover .mod-card-title {
    color: #ec4899;
}

.mod-meta-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #a1a1aa;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Search and Filter Controls */
.search-input,
.category-select {
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.search-input:focus,
.category-select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

/* Responsive tweak */
@media (max-width: 576px) {
    .mods-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Z-INDEX LAYER SYSTEM FOR MODS PAGE
   ============================================================ */

/* Parent container establishes stacking context */
.mods-page-container {
    background-color: #0a0a0c;
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

/* LAYER 1: Base Background Artwork */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* LAYER 2: Vignette / Dark Atmosphere */
.vignette-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.85) 100%);
    pointer-events: none;
}

/* LAYER 3: Visual Effects Container */
.effects-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none; /* Clicks pass through to content */
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* ============================================================
   MODS PAGE STYLES (can be appended to main style.css)
   ============================================================ */

/* Page Layout & Sticky Footer Setup */
.content-layer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 10;
    position: relative;
}

main.flex-grow-1 {
    flex: 1 0 auto;
}

.site-footer {
    background: rgba(10, 10, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    width: 100%;
    margin-top: auto !important;
    position: relative;
    z-index: 20;
}

.hover-pink:hover {
    color: #ec4899 !important;
    transition: color 0.2s ease;
}

/* Mod Card Grid */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    width: 100%;
}

.mod-card {
    background: rgba(18, 18, 24, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.4),
                0 0 20px 0px rgba(236, 72, 153, 0.25);
}

.mod-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mod-card:hover .mod-thumbnail {
    transform: scale(1.06);
}

/* Badges */
.badge-game {
    background: rgba(168, 85, 247, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.badge-type {
    background: rgba(236, 72, 153, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.mod-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mod-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    transition: color 0.2s ease;
}

.mod-card:hover .mod-card-title {
    color: #ec4899;
}

.mod-meta-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #a1a1aa;
}

/* Search Controls */
.search-input, .category-select {
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    outline: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus, .category-select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

/* Pagination Styling */
.page-btn {
    background: rgba(18, 18, 24, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d1d5db;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.3);
    border-color: #ec4899;
    color: #fff;
}

.page-btn.active {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Gradient Text */
.text-gradient-purple-pink {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Layers (z-index system) */
.mods-page-container {
    background-color: #0a0a0c;
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vignette-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.85) 100%);
    pointer-events: none;
}

.effects-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .mods-grid {
        grid-template-columns: 1fr;
    }
    .search-filter-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   PAGINATION UI (Purple/Pink Theme)
   ============================================================ */

#pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

/* Base Page Buttons */
.page-num {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active Page (Purple Square) */
.page-num.active-sq {
    background: #7c3aed;
    border-color: #7c3aed;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

/* Inactive Page (Circular Outline) */
.page-num.circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.page-num.circle-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
}

/* Ellipsis Dots */
.page-dots {
    color: #a1a1aa;
    font-weight: 700;
    padding: 0 4px;
}

/* Next Button Pill Shape */
.page-next-btn {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-next-btn:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
}

.mod-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.mod-author-info strong {
    color: #ffffff;
}

.mod-author-info .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Fixed Aspect Ratio Container to prevent layout collapse & flicker */
.media-preview-card, 
.mod-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #121218;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Hardware-accelerated smooth rendering for images */
.mod-banner-img, 
.mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.3s ease;
}

/* ============================================================
   AMBIENT BACKGROUND, GLOW ORBS & SPARK PARTICLES
   ============================================================ */

.bg-effects-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.4) contrast(1.1) blur(2px);
    opacity: 0.45;
    transform: scale(1.03);
}

/* Red & Purple Ambient Lighting Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.orb-red {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    right: -100px;
}

.orb-purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    left: -150px;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.15); opacity: 0.65; }
}

/* Sparking Embers Particles */
.sparks-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.spark-particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: floatSpark linear infinite;
}

@keyframes floatSpark {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-105vh) translateX(40px) scale(0.2);
        opacity: 0;
    }
}

/* Snow Effect Layer */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: fallSnow linear infinite;
}

/* Natural Falling & Swaying Keyframes */
@keyframes fallSnow {
    0% {
        transform: translateY(-10px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(50vh) translateX(20px);
    }
    90% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(105vh) translateX(-15px);
        opacity: 0;
    }
}

/* ============================================================
   HIGH-END GLASSMORPHIC & AUTHOR BADGES
   ============================================================ */

/* Glassmorphic Details Cards */
.details-card {
    background: rgba(18, 18, 28, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 16px !important;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-card:hover {
    border-color: rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

/* Dynamic Author / Porter Badges Container */
.badge-author-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Rikka Badge: Purple Fill + Neon Pink Outline & Glow */
.author-badge.badge-rikka {
    background: rgba(168, 85, 247, 0.18);
    color: #e9d5ff;
    border: 1.5px solid #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.35), inset 0 0 8px rgba(168, 85, 247, 0.2);
    text-shadow: 0 0 6px rgba(236, 72, 153, 0.6);
}

.author-badge.badge-rikka:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(168, 85, 247, 0.28);
    box-shadow: 0 0 18px rgba(236, 72, 153, 0.7), inset 0 0 12px rgba(168, 85, 247, 0.4);
}

/* TEX Badge: Electric Blue Fill + Gold Outline & Glow */
.author-badge.badge-tex {
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    border: 1.5px solid #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35), inset 0 0 8px rgba(37, 99, 235, 0.2);
    text-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

.author-badge.badge-tex:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(37, 99, 235, 0.32);
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.7), inset 0 0 12px rgba(37, 99, 235, 0.4);
}

/* Default Author Badge */
.author-badge.badge-default {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* High-End Download Button Glow */
.download-glow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.download-glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 38, 211, 0.6);
    color: #ffffff;
}

/* ============================================================
   CATALOG UI OVERHAUL & NAVBAR OVERLAP FIX
   ============================================================ */

/* Fix Header Overlap – clears fixed navbar */
.mods-catalog-wrapper,
main.catalog-container {
    padding-top: 120px !important;
    min-height: 100vh;
}

/* Catalog Title & Subtitle */
.catalog-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.catalog-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.catalog-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Glassmorphic Mod Card Overhaul */
.mod-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 28, 0.65) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    text-decoration: none !important;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 14px 35px rgba(124, 58, 237, 0.25);
}

/* Thumbnail Hover Animation */
.mod-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0f0f15;
}

.mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mod-card:hover .mod-thumbnail {
    transform: scale(1.06);
}

/* Card Body & Badges */
.mod-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mod-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Author Badge Mini Highlights */
.badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-mini.rikka {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border: 1px solid #ec4899;
}

.badge-mini.tex {
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    border: 1px solid #eab308;
}

/* Gold/Default Author Badge */
.badge-mini.gold {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;               /* Bright gold text */
    border: 1px solid rgba(234, 179, 8, 0.6);
    text-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}

/* ============================================================
   MOD CARD META VISIBILITY FIX (SIZE, DOWNLOADS, AUTHOR)
   ============================================================ */

.mod-card-meta,
.mod-meta-footer {
    color: #e2e8f0 !important;          /* Light gray-white for text */
    font-size: 0.85rem;
}

.mod-card-meta .fa-solid,
.mod-meta-footer .fa-solid {
    color: #a855f7;                     /* Purple icons for contrast */
    margin-right: 4px;
}

.mod-card-meta div,
.mod-meta-footer span,
.mod-meta-footer .meta-item {
    color: #e2e8f0 !important;
}

/* Ensure strong tags inside meta are also bright */
.mod-card-meta strong {
    color: #ffffff !important;
}

/* Author badges (if not already styled) */
.badge-mini.gold {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.6);
    text-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}

/* Additions Grid Layout */
.additions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Card Styling (if not using existing .mod-card) */
.addition-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 28, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.addition-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

/* Thumbnail */
.addition-card .mod-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0f15;
}

.addition-card .mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.addition-card:hover .mod-thumbnail {
    transform: scale(1.05);
}

/* Description text */
.addition-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin-bottom: 12px;
}

/* Metadata */
.addition-card .mod-card-meta {
    font-size: 0.8rem;
    color: #ccc;
}

/* ============================================================
   ADDITIONS CARD REFINEMENTS
   ============================================================ */

/* Ensure image container has proper aspect ratio */
.addition-card .mod-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0f0f15;
    border-radius: 8px 8px 0 0;
}

.addition-card .mod-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card body as flex column so footer sticks to bottom */
.addition-card .mod-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px;
}

/* Footer container with margin-top auto to push button down */
.addition-card .mod-meta-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid equal height */
.additions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Creator badge (purple/pink) */
.badge-mini.creator {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border: 1px solid #ec4899;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Porter badge (gold/blue) */
.badge-mini.porter {
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    border: 1px solid #eab308;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   ADDITION DETAIL PAGE LAYOUT FIXES
   ============================================================ */

/* Constrain the main detail container */
.addition-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Fix the banner/preview image size */
.media-preview-card {
    width: 100%;
    height: 280px;               /* fixed height */
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f15;
}

.mod-banner-img,
.media-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Balanced spacing between sections */
.mod-details-grid,
.details-left-col,
.details-right-col {
    gap: 1.5rem;
}

.details-card {
    margin-bottom: 1.5rem;
}

/* Ensure download button stays neatly within sidebar */
.download-glow-btn {
    margin-top: 1.5rem;
}

/* ============================================================
   NEWS & UPDATES COMPONENTS
   ============================================================ */

/* News container layout */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Featured banner card */
.news-featured-card {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    display: grid;
    grid-template-columns: 1fr 300px;   /* Text left, image right */
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    align-items: center;
}

/* If no image exists on featured post, fall back to single column */
.news-featured-card.no-image {
    grid-template-columns: 1fr;
}

.news-featured-image {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.news-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
}

.news-featured-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.news-featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-content .news-category-badge {
    align-self: flex-start;
    margin-bottom: 0.8rem;
}

.news-featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.news-featured-summary {
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.news-featured-date {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.news-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    width: fit-content;
}

.news-read-more-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    transform: translateY(-2px);
    color: #fff;
}

/* Regular news grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Individual news card */
.news-card {
    background: rgba(18, 18, 28, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-3px);
}

.news-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0f0f15;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card-summary {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.news-card-date {
    color: #a1a1aa;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Category badges */
.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-category-badge.site-update {
    background: rgba(124, 58, 237, 0.25);
    color: #c4b5fd;
    border: 1px solid #7c3aed;
}

.news-category-badge.new-mod {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid #10b981;
}

.news-category-badge.announcement {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid #ef4444;
}

.news-category-badge.maintenance {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border: 1px solid #f59e0b;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .news-featured-card {
        grid-template-columns: 1fr;
    }
    .news-featured-image {
        aspect-ratio: 16/9;
        min-height: auto;
    }
}

/* ============================================================
   VERTICAL NEWS FEED LAYOUT
   ============================================================ */

/* ============================================================
   NEWS FEED – PINK & PURPLE THEME
   ============================================================ */

/* Feed container */
.news-feed {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;                 /* spacing handled by dividers */
}

/* Individual news card */
.news-card {
    background: rgba(20, 15, 30, 0.6);
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 15px rgba(255, 43, 109, 0.2);
}

/* Card header row: category left, date right */
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.news-card-date {
    color: #a1a1aa;
    font-size: 0.85rem;
}

/* Title & summary */
.news-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card-summary {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Footer with button aligned right */
.news-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* Pink-purple gradient button */
.news-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff2b6d, #a855f7);
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    width: fit-content;
}

.news-read-more-btn:hover {
    background: linear-gradient(135deg, #e11d48, #9333ea);
    transform: translateY(-2px);
    color: #fff;
}

/* Gradient divider between cards */
.news-feed-divider {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 43, 109, 0.5),
        rgba(168, 85, 247, 0.5),
        transparent
    );
    margin: 2rem auto;
    width: 100%;
    max-width: 850px;
}

/* Category badges (if not already styled) */
.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-category-badge.site-update {
    background: rgba(168, 85, 247, 0.25);
    color: #c4b5fd;
    border: 1px solid #a855f7;
}

.news-category-badge.new-mod {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid #10b981;
}

.news-category-badge.announcement {
    background: rgba(255, 43, 109, 0.25);
    color: #fca5a5;
    border: 1px solid #ff2b6d;
}

.news-category-badge.maintenance {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border: 1px solid #f59e0b;
}

/* ============================================================
   REQUESTS PAGE – PINK & PURPLE GLASSMORPHISM OVERHAUL
   ============================================================ */

/* Main wrapper for guidelines card */
.requests-wrapper {
    max-width: 850px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

/* Glassmorphic card */
.requests-card {
    background: rgba(20, 15, 30, 0.75);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 18px;
    padding: 2.5rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Header inside the card */
.requests-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requests-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Custom guideline list (no default bullets) */
.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Numbered circular badge */
.rule-badge {
    background: linear-gradient(135deg, #ff2b6d, #a855f7);
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Profile badge overrides (pink/purple theme) */
.skill-badge.badge-pink {
    background: rgba(255, 43, 109, 0.25);
    color: #ffb3c1;
    border: 1px solid #ff2b6d;
}

.skill-badge.badge-purple {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid #a855f7;
}

/* Action area at bottom */
.requests-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Primary Gmail button */
.btn-gmail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #ff2b6d, #a855f7);
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(255, 43, 109, 0.35);
}

.btn-gmail-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 43, 109, 0.6);
    color: #ffffff;
}

/* Fallback email link */
.email-fallback {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.email-fallback span {
    color: #ff2b6d;
    font-weight: 600;
}

/* Admin Cards Grid */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
}

/* Copied button state */
.btn-copy.copied {
    border-color: #ff2b6d !important;
    color: #ff7ebb !important;
}

.btn-discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.35);
}

.btn-discord-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.6);
    color: #ffffff;
}

/* Hub card specific styles */
.hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hub-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.hub-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.type-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.type-pill {
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d5db;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-pill.active {
    background: linear-gradient(135deg, #ff2b6d, #a855f7);
    border-color: transparent;
    color: #fff;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hub card image */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f0f15;
    border-radius: 8px 8px 0 0;
}

.card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hub-card:hover .card-cover-img {
    transform: scale(1.05);
}

/* Keep existing hub description & actions */
.hub-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.hub-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ============================================================
   COMING SOON STATE (MODDING HUB)
   ============================================================ */

.coming-soon-container {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(20, 15, 30, 0.6);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    max-width: 600px;
    margin: 3rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

.coming-soon-container h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ff2b6d, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-container p {
    color: #9ca3af;
    font-size: 1rem;
    margin: 0;
}

/* Reuse the pulseGlow animation if not already present */
@keyframes pulseGlow {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(1); }
}

.news-category-badge.event {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff99;
    border: 1px solid #ffff00;
}