/* ============================================
   PokeModZeRO FluxCP Theme - Main Stylesheet
   Pokemon-themed dark teal design with animated gradients
   
   TABLE OF CONTENTS:
   1. Variables & Fonts
   2. Reset & Base Styles
   3. Keyframe Animations
   4. Gradient Text Effects
   5. Header Components
   6. Navigation
   7. Hero Section
   8. Content Cards & Sections
   9. Features Section
   10. Tables & Forms
   11. Footer
   12. CTA Section
   13. News Cards
   14. Utility Classes
   15. FluxCP Overrides
   16. Responsive Styles
   ============================================ */

/* ============================================
   1. VARIABLES & FONTS
   ============================================ */
@import url('https://fonts.cdnfonts.com/css/pokemon-solid');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Background Colors */
    --bg-primary: #152528;
    --bg-secondary: #1A2F38;
    --bg-card: #1E3A3E;
    
    /* Text Colors */
    --text-primary: #E8F4F4;
    --text-secondary: #A8D8D8;
    --text-muted: #6B9A9A;
    
    /* Accent Colors */
    --accent-primary: #82313F;
    --accent-secondary: #68D391;
    --accent-gold: #D4A574;
    
    /* Border & Gradient Colors */
    --border-color: #2D5A5A;
    --gradient-purple: #a855f7;
    --gradient-orange: #fb923c;
    --gradient-cyan: #22d3ee;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

/* ============================================
   3. KEYFRAME ANIMATIONS
   ============================================ */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float-cloud {
    0% { transform: translateX(-250px); }
    100% { transform: translateX(calc(100vw + 250px)); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(104, 211, 145, 0.3); }
    50% { box-shadow: 0 0 40px rgba(104, 211, 145, 0.5); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* ============================================
   4. GRADIENT TEXT EFFECTS
   ============================================ */
.gradient-text-1 {
    background: linear-gradient(45deg, var(--gradient-purple), var(--gradient-orange), var(--accent-primary), #3b82f6, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-rotate 4.8s ease infinite;
}

.gradient-text-2 {
    background: linear-gradient(45deg, var(--accent-primary), var(--gradient-orange), var(--gradient-purple), #3b82f6, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-rotate 4.8s ease infinite;
}

/* ============================================
   5. HEADER COMPONENTS
   ============================================ */
.header-wrapper {
    position: relative;
    background-color: var(--bg-secondary);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(45, 90, 90, 0.3);
}

.header-clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Clouds - 200% larger, 50% slower, 15% more visible */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.cloud-1 {
    width: 420px;
    height: 150px;
    top: 25%;
    animation: float-cloud 68s linear infinite;
}

.cloud-1::before {
    width: 210px;
    height: 210px;
    top: -75px;
    left: 75px;
}

.cloud-1::after {
    width: 180px;
    height: 180px;
    top: -54px;
    left: 210px;
}

.cloud-2 {
    width: 540px;
    height: 180px;
    top: 60%;
    animation: float-cloud 83s linear infinite;
    animation-delay: -22s;
}

.cloud-2::before {
    width: 270px;
    height: 270px;
    top: -105px;
    left: 105px;
}

.cloud-2::after {
    width: 210px;
    height: 210px;
    top: -66px;
    left: 300px;
}

.cloud-3 {
    width: 360px;
    height: 135px;
    top: 40%;
    animation: float-cloud 60s linear infinite;
    animation-delay: -38s;
}

.cloud-3::before {
    width: 180px;
    height: 180px;
    top: -66px;
    left: 60px;
}

.cloud-3::after {
    width: 150px;
    height: 150px;
    top: -45px;
    left: 180px;
}

/* Rainbow Bar */
.rainbow-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #800080, #FFA500, #40E0D0, #800000, #800080);
    background-size: 400% 100%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    z-index: 5;
}

/* Social/Top Bar */
.social-bar {
    background-color: #0e1417;
    border-bottom: 1px solid rgba(45, 90, 90, 0.2);
    position: relative;
    z-index: 5;
}

.social-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 12px;
}

/* Logo Section */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
    margin-left: -10%;
}

.logo-pokeball {
    height: 95px;
    width: 95px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    transform: rotate(17deg) scaleX(-1);
    margin-left: 20px;
    margin-right: -10px;
    z-index: 10;
    position: relative;
}

.logo-mascot {
    height: 178px;
    width: auto;
    object-fit: contain;
    margin-top: -4px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transform: rotate(2deg);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    font-size: 43px;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    font-family: 'Pokemon Hollow', sans-serif;
    letter-spacing: 0;
}

.logo-o-icon {
    height: 49px;
    width: 49px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    margin-left: -2px;
    margin-top: 10px;
}

.logo-subtitle {
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
    margin-top: 5px;
    margin-left: 30px;
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-cyan), var(--gradient-orange), var(--accent-primary), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-rotate 6s ease infinite;
}

/* ============================================
   6. NAVIGATION
   ============================================ */
.main-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 5;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 4px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    min-width: 200px;
    border: 1px solid rgba(45, 90, 90, 0.3);
    display: none;
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: #ededca;
    color: var(--accent-primary);
    font-weight: bold;
}

.user-icon {
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.user-icon:hover {
    color: var(--accent-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(45, 90, 90, 0.3);
    padding: 16px;
}

.mobile-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(104, 211, 145, 0.1);
    color: var(--accent-secondary);
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: calc(36vh + 50px);
    display: flex;
    align-items: center;
    padding-top: 20px;
    margin-top: -40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 31, 36, 0.35);
    transition: background 0.3s;
}

.hero-section:hover .hero-overlay {
    background: transparent;
}

/* Pokemon Icons Grid */
.pokemon-icons-container {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.pokemon-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 16px 0 72px;
    margin-top: 8px;
}

.pokemon-icon-wrapper {
    width: 64px;
    height: 64px;
}

.pokemon-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    filter: brightness(0);
    opacity: 0.3;
}

.pokemon-icon-wrapper:hover .pokemon-icon {
    filter: brightness(1);
    opacity: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text {
    color: white;
    margin-top: 360px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 32px;
    margin-left: 10px;
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-cyan), var(--gradient-orange), var(--accent-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-rotate 6s ease infinite;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 35px;
}

.hero-mascot {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: -15%;
    margin-right: -10%;
    padding-top: 272px;
    transform: translateX(60px);
}

.mascot-image {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.85));
    animation: float 3s ease-in-out infinite;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ============================================
   8. CONTENT CARDS & SECTIONS
   ============================================ */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
}

.content-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    color: var(--accent-primary);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(130, 49, 63, 0.3);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.btn-primary:hover {
    background: #6B2833;
    transform: scale(1.05);
    color: white;
}

.btn-secondary {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(104, 211, 145, 0.3);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.btn-secondary:hover {
    background: #48BB78;
    transform: scale(1.05);
    color: var(--bg-primary);
}

/* Sub Menu */
.sub-menu {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
}

.sub-menu a {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.sub-menu a:hover {
    background: rgba(104, 211, 145, 0.1);
    color: var(--accent-secondary);
}

.sub-menu a.active {
    background: var(--accent-primary);
    color: white;
}

/* Messages */
.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message.success {
    background: rgba(104, 211, 145, 0.1);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.message.notice {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid var(--gradient-orange);
    color: var(--gradient-orange);
}

/* ============================================
   9. FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.features-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20v20H0V20h20zm0 0V0h20v20H20z' fill='%23E8F4F4' fill-opacity='0.4'/%3E%3C/svg%3E");
}

.features-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-title-italic {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.features-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.feature-row-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-circle {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--border-color), var(--bg-secondary));
    border: 2px solid rgba(104, 211, 145, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.feature-row-item:hover .feature-circle {
    border-color: rgba(104, 211, 145, 0.6);
    transform: scale(1.05);
}

.feature-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: rgba(168, 216, 216, 0.8);
    line-height: 1.6;
}

/* ============================================
   10. TABLES & FORMS
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(45, 90, 90, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(45, 90, 90, 0.2);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(104, 211, 145, 0.05);
}

.data-table .rank {
    font-weight: bold;
    color: var(--accent-gold);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
}

.search-form button {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #6B2833;
}

/* Select Dropdown */
select {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
}

select:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-primary);
}

.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 51px 24px 38px;
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-mascot-col {
    display: flex;
    align-items: center;
}

.footer-mascot-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
    display: flex;
    align-items: center;
}

.footer-bullet-icon {
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-links-col a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: var(--accent-secondary);
}

.footer-sprites-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 20px 0;
    width: 100%;
    border-top: 1px solid rgba(45, 90, 90, 0.2);
}

.footer-sprite {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0);
    transition: filter 0.3s, opacity 0.3s;
}

.footer-sprite:hover {
    filter: brightness(1);
}

.footer-copyright-bg {
    position: relative;
    background-size: 122%;
    background-position: center 80%;
    padding: 140px 24px;
    text-align: center;
    min-height: 300px;
    transform: scaleX(-1);
}

.footer-copyright-bg .footer-copyright-overlay {
    transform: scaleX(-1);
}

.footer-copyright-overlay {
    position: relative;
    z-index: 1;
}

.footer-copyright-bg p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.footer-copyright-overlay p {
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================
   12. CTA SECTION
   ============================================ */
.cta-green-section {
    position: relative;
    background: rgb(63, 102, 72);
    padding: 38px 0;
    overflow: hidden;
}

.cta-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.cta-green-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.cta-green-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.cta-green-text h2 i {
    margin-left: 12px;
}

.cta-register-btn {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: #276749;
    font-weight: 700;
    font-size: 16px;
    border-radius: 9999px;
    border: 2px solid white;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.cta-register-btn:hover {
    background: transparent;
    color: white;
}

/* ============================================
   13. NEWS CARDS
   ============================================ */
.news-updates-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
}

.news-updates-header {
    text-align: center !important;
    margin-bottom: 32px !important;
}

.news-updates-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 12px !important;
}

.news-title-underline {
    width: 60px !important;
    height: 3px !important;
    background: var(--accent-primary) !important;
    margin: 0 auto !important;
    border-radius: 2px !important;
}

.news-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.news-card {
    background: var(--bg-secondary) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(45, 90, 90, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 100% !important;
}

.news-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.15) !important;
    border-color: var(--accent-gold) !important;
}

.news-card-image-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    max-height: 150px !important;
}

.news-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s !important;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-badge-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-primary);
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 0;
}

.news-card-body {
    padding: 16px;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-date i {
    font-size: 11px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.news-read-more:hover {
    color: var(--text-primary);
}

/* News Item (legacy) */
.news-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.news-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--accent-primary); }
.text-success { color: var(--accent-secondary); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success {
    background: rgba(104, 211, 145, 0.2);
    color: var(--accent-secondary);
}

.badge-warning {
    background: rgba(251, 146, 60, 0.2);
    color: var(--gradient-orange);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-info {
    background: rgba(34, 211, 238, 0.2);
    color: var(--gradient-cyan);
}

/* Pagination */
.pagination,
.pages,
.page-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pages a,
.pages span,
.page-list a,
.page-list span {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover,
.pages a:hover,
.page-list a:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    border-color: var(--accent-secondary);
}

.pagination .current,
.pages .current,
.page-list .current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Item/Monster Database */
.item-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.monster-sprite {
    max-width: 80px;
    max-height: 80px;
}

.stat-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent-secondary);
    border-radius: 4px;
}

/* ============================================
   15. FLUXCP OVERRIDES
   ============================================ */

/* Generic Form Table */
.generic-form-table,
table.generic-form-table {
    width: 100%;
    border-collapse: collapse;
}

.generic-form-table td {
    padding: 8px 0;
    border: none;
}

.generic-form-table label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.generic-form-table input[type="text"],
.generic-form-table input[type="password"],
.generic-form-table input[type="email"],
.generic-form-table select,
.generic-form-table textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.generic-form-table input:focus,
.generic-form-table select:focus,
.generic-form-table textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.1);
}

.generic-form-table button,
.generic-form-table input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.generic-form-table button:hover,
.generic-form-table input[type="submit"]:hover {
    background: #6B2833;
    transform: scale(1.02);
}

/* Horizontal Table */
table.horizontal-table {
    width: 100%;
    border-collapse: collapse;
}

table.horizontal-table th {
    background: rgba(45, 90, 90, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

table.horizontal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(45, 90, 90, 0.2);
    color: var(--text-secondary);
}

table.horizontal-table tr:hover td {
    background: rgba(104, 211, 145, 0.05);
}

/* Vertical Table */
table.vertical-table {
    width: 100%;
    border-collapse: collapse;
}

table.vertical-table th {
    background: rgba(45, 90, 90, 0.15);
    color: var(--accent-gold);
    font-weight: 600;
    text-align: right;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(45, 90, 90, 0.2);
    width: 30%;
}

table.vertical-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(45, 90, 90, 0.2);
    color: var(--text-secondary);
}

/* FluxCP Color Classes */
p.red, .red {
    color: #ff6b6b;
}

p.green, .green {
    color: var(--accent-secondary);
}

.not-applicable {
    color: var(--text-muted);
    font-style: italic;
}

.toggler a {
    color: var(--accent-gold) !important;
}

/* ============================================
   16. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-mascot {
        display: none;
    }
    
    .features-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-main-text {
        font-size: 28px;
    }
    
    .logo-subtitle {
        font-size: 14px;
    }
    
    .hero-text {
        margin-top: 200px;
    }
    
    .footer-grid-4col {
        grid-template-columns: 1fr;
    }
    
    .news-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   17. DIAGONAL RAIN EFFECT
   ============================================ */
@keyframes rain-diagonal {
    0% {
        transform: translate(-100px, -100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100vw, 100vh);
        opacity: 0;
    }
}

.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: rain-diagonal 8s linear infinite;
}
