/* ============================================
   SITE-WIDE STYLING FIXES
   - Uniform Background
   - Enhanced Blur on Text Boxes
   - Light Text Colors Only
   ============================================ */

/* ============================================
   UNIFORM BACKGROUND - Ensure all pages use same background
   ============================================ */
html, body {
    background: linear-gradient(
        135deg,
        #000000 0%,
        #0a0e27 25%,
        #1a1f3a 50%,
        #0a0e27 75%,
        #000000 100%
    ) !important;
    background-size: 200% 200% !important;
    animation: gradientBreath 20s ease-in-out infinite !important;
    color: #ffffff !important;
}

/* Ensure all containers don't override background */
.container,
.main-container,
.page-container,
.content-container,
.wrapper,
.main-wrapper {
    background: transparent !important;
}

/* ============================================
   ENHANCED BLUR ON ALL BOXES WITH TEXT
   ============================================ */

/* Cards, boxes, panels - Enhanced blur */
.news-card,
.card,
.box,
.panel,
.widget,
.unified-card,
.post-card,
.content-box,
.form-container,
.login-box,
.auth-box,
.admin-panel,
.dashboard-card,
.ai-panel,
.message-box,
.alert-box,
.notification-box,
.twelve-grid-item,
.featured-card,
.traffic-card,
.debate-card,
.forum-card,
.classified-card,
.user-card,
.event-card {
    background: rgba(11, 15, 25, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Widget content areas - enhanced blur */
.widget-content,
.card-content,
.news-card-content,
.post-content,
.article-content,
.comment-content,
.content-area {
    background: rgba(11, 15, 25, 0.5) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

/* Header/Navigation - enhanced blur */
.main-header,
.header,
.nav-container,
.site-header {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
}

/* Ensure gradient animation works on all pages */
html {
    animation: gradientBreath 20s ease-in-out infinite !important;
}

/* ============================================
   LIGHT TEXT COLORS ONLY - Remove all dark text
   ============================================ */

/* Base text - ensure light colors */
body,
p,
div,
span,
label,
li,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

/* Secondary text - light gray */
.text-secondary,
.secondary-text,
.muted-text,
.dim-text,
.text-dim,
.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Tertiary text - lighter gray */
.text-tertiary,
.tertiary-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Headings - white */
h1, h2, h3, h4, h5, h6,
.card-title,
.news-card h3,
.unified-card h3,
.post-title,
.article-title {
    color: #ffffff !important;
}

/* Paragraphs in cards */
.news-card p,
.card p,
.unified-card p,
.post-card p,
.content-box p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Links - light blue/cyan */
a,
.link {
    color: #60a5fa !important;
}

a:hover,
.link:hover {
    color: #93c5fd !important;
}

/* Buttons - ensure light text */
button,
.btn,
.button {
    color: #ffffff !important;
}

/* Form inputs - light text */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="tel"],
textarea,
select {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Tables - light text */
table {
    color: #ffffff !important;
}

th, td {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Badges and labels - light text */
.badge,
.label,
.category-badge,
.status-badge {
    color: #ffffff !important;
}

/* Override any specific dark color declarations */
[style*="color: #000"],
[style*="color:#000"],
[style*="color: #000000"],
[style*="color:#000000"],
[style*="color: rgb(0"],
[style*="color:rgb(0"],
[style*="color: rgba(0, 0, 0"],
[style*="color:rgba(0, 0, 0"] {
    color: #ffffff !important;
}

/* ============================================
   SPECIFIC COMPONENT FIXES
   ============================================ */

/* News cards - ensure blur and light text */
.news-card {
    background: rgba(11, 15, 25, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

.news-card h3 {
    color: #ffffff !important;
}

.news-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Widgets - enhanced blur */
.widget {
    background: rgba(11, 15, 25, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Widget titles - bold white */
.widget-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Sidebar text - white and bold */
.sidebar,
.sidebar-left,
.sidebar-right,
.sidebar-section {
    color: #ffffff !important;
}

.sidebar *,
.sidebar-left *,
.sidebar-right *,
.sidebar-section * {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.sidebar a,
.sidebar-left a,
.sidebar-right a,
.sidebar-section a {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.sidebar-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.widget-content {
    background: rgba(11, 15, 25, 0.5) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

/* Unified cards */
.unified-card {
    background: rgba(12, 16, 26, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #ffffff !important;
}

.unified-card h3,
.unified-card h4 {
    color: #ffffff !important;
}

.unified-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Twelve grid items */
.twelve-grid-item {
    background: rgba(12, 16, 26, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #ffffff !important;
}

.twelve-grid-item h4 {
    color: #ffffff !important;
}

/* Modal and overlay content */
.modal-content,
.modal-dialog,
.dialog-content {
    background: rgba(11, 15, 25, 0.95) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    color: #ffffff !important;
}

/* Admin panels */
.admin-panel,
.dashboard-card {
    background: rgba(11, 15, 25, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #ffffff !important;
}

/* Form containers */
.form-container,
.login-box,
.auth-box {
    background: rgba(11, 15, 25, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #ffffff !important;
}

/* ============================================
   FOOTER - DARKENED BACKGROUND
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
}

/* ============================================
   ANIMATION FOR BACKGROUND
   ============================================ */
@keyframes gradientBreath {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

