/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--light);
}

/* Modern color palette */
:root {
    --primary: #2C3E50;    /* Deep blue-gray */
    --accent: #E74C3C;     /* Vibrant red */
    --highlight: #F1C40F;  /* Golden yellow */
    --light: #ECF0F1;     /* Light gray */
    --dark: #2C3E50;      /* Dark blue-gray */
    --nav-bg: #2C3E50;          /* Dark blue background */
    --nav-hover: #34495E;       /* Slightly lighter blue for hover */
    --nav-text: #ECF0F1;        /* Light text */
    --nav-active: #E74C3C;      /* Red accent for active state */
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.svg');
    opacity: 0.1;
    animation: float 20s linear infinite;
}

/* Updated Ticker Tape Styles */
.ticker-tape {
    width: 100%;
    background: #2C3E50;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 45s linear infinite;
    padding-left: 100%;
    transition: all 0.5s ease;
}

/* Pause animation on hover */
.ticker-tape:hover .ticker-content {
    animation-play-state: paused;
}

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

/* Header styles */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.logo-container {
    text-align: center;
    padding: 2rem 0;
}

.logo-container h1 {
    font-size: 3rem;
    color: #333;
}

.tagline {
    color: #666;
    font-style: italic;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    background: #333;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

nav ul li a:hover {
    background: #444;
}

/* Main content grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced news cards */
.news-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card h2 {
    padding: 1rem;
    font-size: 1.2rem;
}

.news-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.category-tag[data-category="Breaking Waves"] {
    background: var(--accent);
    color: white;
}

.category-tag[data-category="Mythical Insights"] {
    background: var(--highlight);
    color: var(--dark);
}

.article-preview {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin: 0 1rem 1rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .logo-container h1 {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Add these new styles */
.nav-link.active {
    background: #444;
}

.news-card.hidden {
    display: none;
}

/* Additional Hero Section Styles */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--light);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.feature {
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Enhanced Navigation Styles */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    background: transparent;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    background: var(--nav-hover);
    color: white;
}

/* Active state for nav links */
.nav-link.active {
    color: white;
    background: var(--nav-active);
}

.nav-link.active::after {
    width: 80%;
}

/* Add icons to nav items */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    opacity: 1;
    margin-right: 8px;
    font-size: 1.2em;
}

.nav-link[href="#home"]::before {
    content: "🏠";
}

.nav-link[href="#breaking"]::before {
    content: "🌊";
}

.nav-link[href="#columns"]::before {
    content: "📜";
}

.nav-link[href="#insights"]::before {
    content: "🔮";
}

.nav-link[href="#trending"]::before {
    content: "💫";
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    /* Add hamburger menu for mobile */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--light);
    transform: rotate(360deg);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Enhanced Card Features */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    z-index: 1;
}

.news-card img {
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--dark);
    transition: color 0.3s ease;
}

.news-card:hover h2 {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary: #ECF0F1;
    --dark: #1a1a1a;
    --light: #2C3E50;
    background: var(--dark);
}

[data-theme="dark"] .news-card {
    background: #2C3E50;
}

[data-theme="dark"] .news-card h2,
[data-theme="dark"] .news-card p {
    color: var(--primary);
}

/* Add these new styles */
.category-header {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 3rem 2rem;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category-specific colors */
[data-category="Breaking Waves"] .category-header {
    background: linear-gradient(135deg, #2C3E50, #3498db);
}

[data-category="Columns of Wisdom"] .category-header {
    background: linear-gradient(135deg, #2C3E50, #27ae60);
}

[data-category="Mythical Insights"] .category-header {
    background: linear-gradient(135deg, #2C3E50, #8e44ad);
}

[data-category="The Ripple Effect"] .category-header {
    background: linear-gradient(135deg, #2C3E50, #e67e22);
}

/* Ticker tape styling for different news types */
.ticker-content span {
    padding: 4px 8px;
    margin: 0 10px;
    border-radius: 4px;
    font-weight: 500;
}

.breaking {
    background: #e74c3c;
    color: white;
}

.politics {
    background: #3498db;
    color: white;
}

.local {
    background: #2ecc71;
    color: white;
}

.tech {
    background: #9b59b6;
    color: white;
} 