/* Custom styles for News2Me - Theme Aware */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

/* Navbar customization */
.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
}

/* Cards */
.card {
    border-radius: 8px;
    background-color: var(--theme-card-bg);
    border-color: var(--theme-card-border);
    box-shadow: 0 1px 3px var(--theme-card-shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 0 2px 8px var(--theme-card-hover-shadow);
}

.card-header {
    background-color: var(--theme-bg-secondary);
    border-bottom-color: var(--theme-border);
}

.card-footer {
    background-color: var(--theme-bg-secondary);
    border-top-color: var(--theme-border);
}

/* Article images */
.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Source logo */
.source-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Footer (legacy pages; consumer site uses .public-footer) */
footer:not(.public-footer) {
    margin-top: auto;
    background-color: var(--theme-footer-bg) !important;
    color: var(--theme-footer-text);
}

/* Audio player */
.audio-player {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Category badges */
.badge {
    font-weight: normal;
    padding: 0.5em 0.8em;
}

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

/* Article details */
.article-content {
    line-height: 1.8;
    color: var(--theme-text-primary);
}

.article-meta {
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
}

/* Preferences page */
.preference-card {
    cursor: pointer;
    text-align: center;
    padding: 1rem;
    background-color: var(--theme-card-bg);
    border-color: var(--theme-card-border);
    color: var(--theme-text-primary);
}

.preference-card.active {
    background-color: var(--theme-info-bg);
    border-color: var(--theme-btn-primary-bg);
}

/* Text colors */
.text-muted {
    color: var(--theme-text-muted) !important;
}

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

/* Background utilities */
.bg-light {
    background-color: var(--theme-bg-secondary) !important;
}

/* Border utilities */
.border {
    border-color: var(--theme-border) !important;
}

.border-top {
    border-top-color: var(--theme-border) !important;
}

.border-bottom {
    border-bottom-color: var(--theme-border) !important;
}

.border-left {
    border-left-color: var(--theme-border) !important;
}

.border-right {
    border-right-color: var(--theme-border) !important;
}

/* For mobile view */
@media (max-width: 768px) {
    .card-img-top {
        height: 140px;
    }
}
