/* ============================================
   RUBY RED CLUB THEME - COMPLETE STYLE OVERRIDE
   ============================================ */

/* ---- GLOBAL ---- */
[data-bs-theme="dark"] body,
body {
    background-color: #050505 !important;
    color: #e5e7eb !important;
    font-family: 'Inter', sans-serif !important;
}

.page {
    background-color: transparent !important;
}

.page-wrapper {
    background-color: transparent !important;
}

/* Background Glow Effects - Matching Ruby Red Next.js */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -2;
    background: url('https://i.imgur.com/AIQ1i78.png') center/cover no-repeat;
    opacity: 0.10;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: 
        linear-gradient(to top, #050505 0%, rgba(5, 5, 5, 0.90) 50%, rgba(5, 5, 5, 0.50) 100%);
}

/* Red Glow Orbs - injected via layout */

::selection {
    background-color: #ef4444;
    color: #fff;
}

/* ---- CARDS (Tüm kartlar) ---- */
.card {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    color: #e5e7eb !important;
    transition: border-color 0.3s ease !important;
}

.card:hover {
    border-color: rgba(220, 38, 38, 0.3) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 1.5rem !important;
}

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

.card-body {
    background-color: transparent !important;
    color: #d1d5db !important;
}

.card-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- BUTTONS ---- */
.btn-primary,
.btn-primary:focus {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-ghost-primary,
.btn-outline-primary {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-ghost-primary:hover,
.btn-outline-primary:hover {
    background-color: #dc2626 !important;
    color: white !important;
}

.ruby-red-btn {
    background-color: #dc2626;
    color: white !important;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.3);
    transition: all 0.3s ease;
    padding: 0.625rem 1.5rem;
    border: none;
}
.ruby-red-btn:hover {
    background-color: #ef4444;
    transform: scale(1.05);
}

/* ---- FORMS / INPUTS ---- */
.form-control,
.form-select {
    background-color: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.3s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15) !important;
    background-color: #111111 !important;
    color: #e5e7eb !important;
}

.form-control::placeholder {
    color: #6b7280 !important;
}

.form-label {
    color: #9ca3af !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    font-size: 0.8rem !important;
}

.input-group-text {
    background-color: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #9ca3af !important;
}

/* ---- TABLES ---- */
.table {
    color: #d1d5db !important;
    --tblr-table-bg: transparent !important;
}

.table > thead > tr > th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #9ca3af !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.table > tbody > tr > td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: #d1d5db !important;
}

.table > tbody > tr:hover > td {
    background-color: rgba(220, 38, 38, 0.05) !important;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
}

.breadcrumb-item a {
    color: #9ca3af !important;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #dc2626 !important;
}

.breadcrumb-item.active {
    color: #6b7280 !important;
}

/* ---- PAGE TITLES ---- */
.page-title,
h2.page-title {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* ---- ALERTS ---- */
.alert-success {
    background-color: rgba(22, 163, 74, 0.1) !important;
    border: 1px solid rgba(22, 163, 74, 0.3) !important;
    color: #4ade80 !important;
}

.alert-danger,
.alert-important {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    color: #f87171 !important;
}

.alert-warning {
    background-color: rgba(234, 179, 8, 0.1) !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
    color: #fbbf24 !important;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

/* ---- DROPDOWN MENUS ---- */
.dropdown-menu {
    background-color: #0f0f0f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    color: #d1d5db !important;
    transition: all 0.2s ease !important;
    border-radius: 0.5rem !important;
    margin: 0.125rem 0.25rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(220, 38, 38, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

/* ---- STORE / PRODUCT CARDS ---- */
.store-item,
.product-card {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    transition: all 0.3s ease !important;
}

.store-item:hover,
.product-card:hover {
    border-color: rgba(220, 38, 38, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.1) !important;
}

/* ---- MODAL ---- */
.modal-content {
    background-color: #0f0f0f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    color: #e5e7eb !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-title {
    color: white !important;
    font-weight: 700 !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* ---- PAGINATION ---- */
.page-item .page-link {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #9ca3af !important;
    border-radius: 0.5rem !important;
    margin: 0 0.125rem !important;
    transition: all 0.2s ease !important;
}

.page-item .page-link:hover {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: white !important;
}

.page-item.active .page-link {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

/* ---- BADGES ---- */
.badge {
    font-weight: 600 !important;
    border-radius: 9999px !important;
}

.badge.bg-primary {
    background-color: rgba(220, 38, 38, 0.15) !important;
    color: #f87171 !important;
}

/* ---- TABS / NAV TABS ---- */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-tabs .nav-link {
    color: #9ca3af !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.nav-tabs .nav-link:hover {
    color: white !important;
    border-bottom-color: rgba(220, 38, 38, 0.5) !important;
}

.nav-tabs .nav-link.active {
    color: white !important;
    background-color: transparent !important;
    border-bottom-color: #dc2626 !important;
}

/* ---- SECTION & GENERAL ---- */
.section {
    background-color: transparent !important;
}

.home-section {
    background-color: transparent !important;
}

.container {
    position: relative;
    z-index: 1;
}

/* ---- TEXT COLORS ---- */
.text-muted {
    color: #6b7280 !important;
}

a {
    color: #dc2626;
    transition: color 0.2s ease;
}

a:hover {
    color: #ef4444;
}

/* ---- AUTH PAGES (Login, Register) ---- */
.auth-form .card,
.card.card-md {
    background-color: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- FOOTER ---- */
footer.footer {
    background-color: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* ---- TABLER OVERRIDES ---- */
:host, :root, [data-bs-theme=dark] {
    --tblr-body-bg: #050505 !important;
    --tblr-bg-surface: #0d0d0d !important;
    --tblr-bg-surface-secondary: #111111 !important;
    --tblr-border-color: rgba(255, 255, 255, 0.05) !important;
    --tblr-card-bg: #0d0d0d !important;
    --tblr-body-color: #e5e7eb !important;
}

/* ---- EXTRAS: Tabler specific components ---- */
.ribbon {
    background-color: #dc2626 !important;
}

.avatar {
    border: 2px solid rgba(220, 38, 38, 0.3) !important;
}

.status-dot {
    border-color: #0d0d0d !important;
}

/* SweetAlert dark overrides */
.swal2-popup {
    background-color: #0f0f0f !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
}

.swal2-confirm {
    background-color: #dc2626 !important;
    border-radius: 0.5rem !important;
}

/* Link colors in cards & content */
.card a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #d1d5db !important;
}

.card a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #dc2626 !important;
}

/* ---- STORE CATEGORY LIST ---- */
.list-group-item {
    background-color: #0d0d0d !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #d1d5db !important;
}

.list-group-item:hover,
.list-group-item.active {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: white !important;
}

/* ---- ANNOUNCEMENT BROADCAST BAR ---- */
.broadcast {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2) !important;
}

.broadcast-item .broadcast-link {
    color: #fca5a5 !important;
}
