/* Global styles */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --red: #e74c3c;
    --green: #2ecc71;
    --yellow: #f1c40f;
    --blue: #3498db;
}

/* Common Elements */
body {
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Navigation */
.navbar-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card .card-img-top {
    height: 240px;
    object-fit: cover;
}

.feature-card .card-body {
    padding: 1.5rem;
}

.feature-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card .card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-pill.news { background: rgba(52, 152, 219, 0.1); color: var(--blue); }
.category-pill.sports { background: rgba(46, 204, 113, 0.1); color: var(--green); }
.category-pill.events { background: rgba(241, 196, 15, 0.1); color: var(--yellow); }

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Meta Information */
.meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-info i {
    color: var(--accent-color);
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--red);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
}

.breaking-news-label {
    background: rgba(0,0,0,0.2);
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 1rem;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Trending Section */
.trending-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.trending-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.trending-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card .card-img-top {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Custom Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.6s ease forwards;
}

/* Custom Components */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-custom.primary {
    background: var(--primary-color);
    color: white;
}

.badge-custom.secondary {
    background: var(--secondary-color);
    color: white;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    outline: none;
    padding: 0.5rem;
    flex: 1;
}

.search-box button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-color);
}
