/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500&family=Poppins:wght@400;600;700&display=swap');

/* Base styles */
:root {
    --primary-bg: #1A1A1A;
    --secondary-bg: #242424;
    --accent-color: #FF6200;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --gradient-dark: linear-gradient(180deg, #242424 0%, #1A1A1A 100%);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
}

/* Header & Navigation */
.site-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: #FF7A33;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

/* News Cards */
.news-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.news-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.news-card-image {
    position: relative;
    height: 200px;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.news-card-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Live Ticker */
.live-ticker {
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 14px;
    padding: 0.5rem 0;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Sidebar Widgets */
.widget {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Footer */
.site-footer {
    background: var(--primary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .news-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Dark Mode Overrides */
.dark {
    --primary-bg: #1A1A1A;
    --secondary-bg: #242424;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF7A33;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-bg);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* News Card Hover Effects */
.news-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Breaking News Ticker */
.news-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker-content {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Category Button Hover Effects */
.category-btn {
    transition: all 0.3s ease;
}

.category-btn:hover {
    transform: scale(1.05);
}

/* Newsletter Form Input Focus Effect */
.newsletter-input {
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Social Media Icons Hover Effect */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #3498db;
}

/* Article Card Image Hover Zoom Effect */
.article-image {
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

/* Custom Focus Outline */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    p {
        font-size: 0.875rem;
    }
}

/* Page Transition Effect */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Selection Color */
::selection {
    background-color: #3498db;
    color: white;
}

.dark ::selection {
    background-color: #2d3748;
    color: white;
} 