/* Buna Pulse Magazine - Global Styles */

:root {
    --brand-red: #c0392b;
    --brand-red-dark: #a03022;
    --brand-charcoal: #2c3e50;
    --brand-charcoal-light: #34495e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-oswald {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Brand Colors */
.text-brand-red { color: var(--brand-red); }
.bg-brand-red { background-color: var(--brand-red); }
.border-brand-red { border-color: var(--brand-red); }
.hover\:text-brand-red:hover { color: var(--brand-red); }
.hover\:bg-brand-red:hover { background-color: var(--brand-red); }
.hover\:border-brand-red:hover { border-color: var(--brand-red); }

.text-brand-charcoal { color: var(--brand-charcoal); }
.bg-brand-charcoal { background-color: var(--brand-charcoal); }
.border-brand-charcoal { border-color: var(--brand-charcoal); }

/* Article Cards */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.article-image {
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

/* Category Tags */
.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 1rem;
    background: rgba(192, 57, 43, 0.9);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

/* Category Colors */
.category-origins { background: #8b5a2b; }
.category-culture { background: #9b6b43; }
.category-sustainability { background: #2e7d32; }
.category-industry { background: #455a64; }
.category-travel { background: #0288d1; }
.category-health { background: #c2185b; }

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-charcoal) 0%, #1a2634 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e') center/cover;
    opacity: 0.15;
    pointer-events: none;
}

/* Pagination */
.pagination-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.pagination-item:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.pagination-active {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Buttons */
.filter-item {
    transition: all 0.2s ease;
}

.filter-active {
    background: var(--brand-red) !important;
    color: white !important;
    border-color: var(--brand-red) !important;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Line Clamping */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Print Styles */
@media print {
    .no-print { display: none; }
    body { font-size: 12pt; }
    a { text-decoration: none; color: black; }
}