/* Modern Magazine Styling */
:root {
    --primary-color: #1a1a2e;
    --accent-color: #e94560;
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.brand-text {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Navigation */
.navbar-dark {
    background: var(--primary-color) !important;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-dark .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Cards - Article Style */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
}

/* Tags/Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-secondary {
    background: var(--primary-color) !important;
}

/* Article Page */
article h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

article .content {
    font-size: 1.1rem;
    max-width: 720px;
}

article .content p {
    margin-bottom: 1.5rem;
}

article .content h2, article .content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Featured Image */
.featured-image {
    border-radius: 12px;
    overflow: hidden;
}

/* Author Info */
.author-link {
    color: var(--accent-color);
    font-weight: 500;
}

/* Hero Section for Homepage */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
}

/* Section Headers */
.section-title {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 0.5rem;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.15);
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: #d63d56;
    border-color: #d63d56;
}

/* Footer */
footer {
    background: var(--primary-color) !important;
}

footer .brand-text {
    color: white;
}

/* No Articles Message */
.no-content {
    text-align: center;
    padding: 5rem 2rem;
}

.no-content h2 {
    color: var(--text-muted);
    font-weight: 400;
}

/* Admin Dashboard Cards */
.dashboard-card {
    border-radius: 12px;
    padding: 1.5rem;
}

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent-color);
}