/* ========================================
   NEYWZ International News Portal
   Modern, Responsive Design
   ======================================== */

:root {
    /* Brand Colors */
    --color-primary: #FFC107;      /* Yellow/Gold */
    --color-secondary: #E53935;    /* Red */
    --color-tertiary: #0D1B2A;     /* Navy Blue */
    --color-accent: #FFB300;       /* Darker Yellow */
    --color-dark-red: #D32F2F;     /* Darker Red */
    --color-navy: #1B263B;         /* Lighter Navy */
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-600: #4B5563;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-tertiary);
    color: var(--color-white);
    padding: var(--spacing-md);
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--color-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   HEADER
   ======================================== */

.top-header {
    background: var(--color-tertiary);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.938rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-btn {
    color: var(--color-white);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* ========================================
   BREAKING NEWS TICKER
   ======================================== */

.breaking-news {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.breaking-label {
    background: var(--color-dark-red);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.breaking-text {
    flex: 1;
    overflow: hidden;
}

.breaking-text p {
    margin: 0;
    font-size: 0.938rem;
    font-weight: 500;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    padding: var(--spacing-xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

/* ========================================
   FEATURED ARTICLE
   ======================================== */

.featured-article {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: var(--spacing-xl);
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-tertiary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.meta-separator {
    color: var(--color-gray-400);
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-lg);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.read-more:hover {
    color: var(--color-dark-red);
    transform: translateX(4px);
}

/* ========================================
   NEWS GRID
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: var(--spacing-md);
}

.card-category {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-tertiary);
}

.card-excerpt {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-sm);
}

.card-meta {
    font-size: 0.813rem;
    color: var(--color-gray-500);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
}

/* Trending List */
.trending-list {
    list-style: none;
}

.trending-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.trending-item:hover {
    transform: translateX(4px);
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 30px;
}

.trending-content h4 {
    font-size: 0.938rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--color-gray-900);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Video Widget */
.video-widget {
    text-align: center;
}

.video-placeholder {
    background: var(--color-gray-100);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: var(--color-gray-200);
}

.video-placeholder svg {
    color: var(--color-secondary);
}

.video-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-tertiary);
}

.video-widget p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-navy) 100%);
    color: var(--color-white);
}

.newsletter-widget .widget-title {
    color: var(--color-white);
    border-bottom-color: var(--color-primary);
}

.newsletter-widget p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 0.938rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.75rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.938rem;
}

.newsletter-form button:hover {
    background: var(--color-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-tertiary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.813rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-tertiary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    opacity: 0.8;
    font-size: 0.938rem;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-column: 1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .breaking-text p {
        font-size: 0.813rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .article-content {
        padding: var(--spacing-md);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
}