/*
Theme Name: DnmBns Theme
Theme URI: http://localhost:5001
Author: DnmBns Team
Description: Modern Dark Mode Social Feed Theme for Trial Bonuses & Promotions
Version: 1.9.0
*/

body {
    background-color: #090d16 !important;
    color: #f8fafc !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Explicit Form Control & Textarea Colors for Dark Mode */
.form-control, textarea.form-control, input.form-control, select.form-select {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}

.form-control:focus, textarea.form-control:focus, input.form-control:focus {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25) !important;
}

.form-control::placeholder, textarea.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.glass-header {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card {
    background-color: #0f172a !important;
    border: 1px solid #1e293b !important;
}

.badge-bonus {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

.border-dashed {
    border-style: dashed !important;
}

.nav-pills .nav-link.active {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 800;
}

.nav-pills .nav-link {
    color: #cbd5e1 !important;
    background-color: #1e293b;
    border: 1px solid #334155;
}

/* Hide WP Admin Bar on front-end */
#wpadminbar {
    display: none !important;
}
html {
    margin-top: 0 !important;
}

/* Discourse Sponsor Grid Styles (AdBlocker Safe) */
.db-wrapper-main {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    margin-bottom: 2rem;
}

.db-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.db-grid-layout.is-organized {
    opacity: 1;
    visibility: visible;
}

.db-grid-layout img {
    width: 100%;
    height: auto;
    display: block;
    border-style: none;
}

.db-card-item {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.db-card-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.db-bg-dark {
    background-color: #374151;
}

@media (max-width: 768px) {
    .db-grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
}
