/* Color Themes for Public Website */

/* Default Blue Theme - Professional */
:root {
    --theme-primary: #0d6efd;
    --theme-secondary: #6c757d;
    --theme-accent: #0a58ca;
    --theme-bg-light: #f8f9fa;
    --theme-text-dark: #212529;
    --theme-link: #0d6efd;
    --theme-link-hover: #0a58ca;
}

/* Red Theme - Breaking News */
[data-theme="red"] {
    --theme-primary: #dc3545;
    --theme-secondary: #6c757d;
    --theme-accent: #b02a37;
    --theme-bg-light: #fdf2f2;
    --theme-text-dark: #212529;
    --theme-link: #dc3545;
    --theme-link-hover: #b02a37;
}

/* Green Theme - Trustworthy */
[data-theme="green"] {
    --theme-primary: #198754;
    --theme-secondary: #6c757d;
    --theme-accent: #146c43;
    --theme-bg-light: #f0f9f4;
    --theme-text-dark: #212529;
    --theme-link: #198754;
    --theme-link-hover: #146c43;
}

/* Purple Theme - Premium */
[data-theme="purple"] {
    --theme-primary: #6f42c1;
    --theme-secondary: #6c757d;
    --theme-accent: #59359a;
    --theme-bg-light: #f5f0ff;
    --theme-text-dark: #212529;
    --theme-link: #6f42c1;
    --theme-link-hover: #59359a;
}

/* Orange Theme - Friendly */
[data-theme="orange"] {
    --theme-primary: #fd7e14;
    --theme-secondary: #6c757d;
    --theme-accent: #ca6510;
    --theme-bg-light: #fff8f0;
    --theme-text-dark: #212529;
    --theme-link: #fd7e14;
    --theme-link-hover: #ca6510;
}

/* Dark Theme - Night Mode */
[data-theme="dark"] {
    --theme-primary: #1E293B;
    --theme-secondary: #475569;
    --theme-accent: #334155;
    --theme-bg-light: #0f172a;
    --theme-text-dark: #f1f5f9;
    --theme-link: #60a5fa;
    --theme-link-hover: #93c5fd;
}

/* Dark mode specific overrides */
[data-theme="dark"] body {
    background-color: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .card {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .card-body {
    background-color: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .border-bottom {
    border-color: #334155 !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #1e293b;
    border-color: var(--theme-link);
    color: #f1f5f9;
}

[data-theme="dark"] .top-bar {
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .top-bar a {
    color: #f1f5f9;
}

[data-theme="dark"] .top-bar a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .main-header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .main-header h1 {
    color: #f1f5f9;
}

/* Category and news page content */
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .text-dark {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

/* Latest news section links */
[data-theme="dark"] .mb-4 a.text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .mb-4 a.text-dark:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] .mb-4 a.text-decoration-none {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .mb-4 a.text-decoration-none:hover {
    color: #60a5fa !important;
}

/* Advertisement sections */
[data-theme="dark"] .bg-light {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .bg-light h6 {
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .bg-light p {
    color: #94a3b8 !important;
}

/* Apply theme variables to common elements */
.main-navbar {
    background-color: var(--theme-primary) !important;
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff !important;
    background-color: var(--theme-accent) !important;
}

/* Dropdown menu */
.main-navbar .dropdown-menu {
    background-color: var(--theme-primary);
    border-color: var(--theme-accent);
}

.main-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.main-navbar .dropdown-item:hover {
    background-color: var(--theme-accent);
    color: #fff;
}

.main-header h1 {
    color: var(--theme-primary);
}

a {
    color: var(--theme-link);
}

a:hover {
    color: var(--theme-link-hover);
}

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-primary:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.text-danger {
    color: var(--theme-primary) !important;
}

.bg-danger {
    background-color: var(--theme-primary) !important;
}

.card-header {
    background-color: var(--theme-primary);
    color: white;
}

.page-link {
    color: var(--theme-primary);
}

.page-link:hover {
    color: var(--theme-accent);
}

.pagination .active .page-link {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.badge.bg-success {
    background-color: var(--theme-primary) !important;
}

/* Latest News Section Header (সর্বশেষ খবর) */
.mb-4 h5.bg-secondary {
    background-color: var(--theme-primary) !important;
}

/* Footer */
footer {
    background-color: var(--theme-primary);
    color: white;
}

footer h5 {
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
    color: white;
}
