/* ========================================
   Știri Actuale România - Main Stylesheet
   Modern, Professional News Website
   ======================================== */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-green: #28a745;
    --primary-green-dark: #218838;
    --primary-green-light: #34ce57;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    
    /* Semantic Colors */
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --max-width-content: 1200px;
    --max-width-text: 700px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    max-width: var(--max-width-text);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green-dark);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--color-gray-700);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
    background-color: var(--color-gray-100);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--color-gray-700);
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto var(--spacing-lg);
    max-width: 600px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--color-gray-100);
    color: var(--primary-green-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--primary-green);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing-xxl) var(--spacing-md);
}

.section-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.section-description {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Background Variations */
.section-gray {
    background-color: var(--color-gray-100);
}

.section-white {
    background-color: var(--color-white);
}

/* ========================================
   News/Blog Cards
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.news-card-category {
    background-color: var(--primary-green);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.news-card-title a {
    color: var(--color-gray-900);
}

.news-card-title a:hover {
    color: var(--primary-green);
}

.news-card-excerpt {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.news-card-link {
    color: var(--primary-green);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.news-card-link:hover {
    color: var(--primary-green-dark);
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ========================================
   CTA (Call to Action) Section
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.1rem;
    margin: 0 auto var(--spacing-lg);
    max-width: 600px;
    opacity: 0.95;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-sm);
}

.cta-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.cta-form input:focus {
    outline: 2px solid var(--color-white);
}

.cta-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-white);
    color: var(--primary-green);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.cta-form button:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-2px);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

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

.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    width: 40px;
    flex-shrink: 0;
}

.contact-info-content h4 {
    margin-bottom: var(--spacing-xs);
}

.contact-info-content p {
    color: var(--color-gray-600);
    margin: 0;
}

.contact-map {
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray-700);
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-gray-300);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-green-light);
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer-bottom p {
    max-width: 100%;
    margin: var(--spacing-xs) auto;
}

/* ========================================
   Article/Blog Post Page
   ======================================== */
.article-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-xl) var(--spacing-md);
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width-content);
    margin: 0 auto;
    width: 100%;
    color: var(--color-white);
}

.article-hero-content h1 {
    color: var(--color-white);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray-300);
}

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

.article-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2,
.article-body h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-body p {
    margin-bottom: var(--spacing-md);
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--color-gray-600);
}

/* ========================================
   Resources/Services Grid
   ======================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.resource-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.resource-card h3 {
    margin-bottom: var(--spacing-sm);
}

.resource-card p {
    color: var(--color-gray-600);
    margin: 0 auto var(--spacing-md);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border: none;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-gray-700);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--spacing-md);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
}

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

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   Disclaimer Box
   ======================================== */
.disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid var(--color-warning);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.disclaimer h3 {
    color: var(--color-warning);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.disclaimer p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--color-gray-800);
}

.disclaimer strong {
    color: var(--color-gray-900);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--box-shadow);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Grid adjustments */
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* CTA Form */
    .cta-form {
        flex-direction: column;
    }
    
    /* Article Hero */
    .article-hero {
        height: 300px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --spacing-xxl: 2.5rem;
        --spacing-xl: 2rem;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none;
}

.visible {
    display: block;
}
