/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --white: #ffffff;
    --border-radius: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    /* Folosim Flexbox pentru a alinia imaginea și textul orizontal */
    display: flex;
    align-items: center; /* Centrează vertical */
    gap: 8px; /* Spațiu mic între imagine și text */

    /* Stilurile originale ale textului logo-ului */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    /* Dimensiunea logo-ului */
    height: 30px;
    width: auto;
}

/* <span> în interiorul logo-ului moștenește font-size și color */
.logo span {
    line-height: 1; /* Asigură alinierea corectă a textului */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

select.lang-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

/* --- 3. BUTTONS --- */
.btn {
    padding: 10px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

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

/* --- 4. SECTIONS (Hero, Features) --- */
section { padding: 80px 0; }

.hero {
    background-color: var(--bg-light);
    text-align: center;
    padding: 100px 0;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--secondary); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}
.feature-card {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); }
.icon-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* --- 5. PRICING BOXES --- */
.pricing-section { background-color: var(--bg-light); text-align: center; }
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
}

.pricing-card.recommended {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 0 0;
}

.price-annual {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.price-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 0 0;
}

.period {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: left;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* --- 6. CTA & FOOTER --- */
.cta { background-color: var(--primary); color: #fff; text-align: center; }
.cta h2 { font-size: 2rem; }

footer { background: #333; color: #ccc; padding: 40px 0; font-size: 0.9rem; }
footer a { color: #fff; text-decoration: none; margin: 0 10px; }

/* --- 7. GDPR BANNER (Updated Compliant Structure) --- */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.gdpr-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}
.gdpr-text {
    flex-grow: 1;
    margin-right: 20px;
    font-size: 0.9rem;
}
.gdpr-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.gdpr-actions button, .gdpr-actions a {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s;
}
.btn-accept-all {
    background-color: #28a745; /* Green */
    color: white;
    font-weight: bold;
}
.btn-reject {
    background-color: #dc3545; /* Red */
    color: white;
}
.btn-settings {
    background-color: #6c757d; /* Gray/Secondary */
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card.recommended { transform: scale(1); }
    .gdpr-content { flex-direction: column; text-align: center; gap: 15px; }
    .gdpr-text { margin-right: 0; }
    .gdpr-actions { justify-content: center; width: 100%; }
}

/* --- 8. COOKIE SETTINGS MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000; 
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 40px auto;
}

.modal-content h2 {
    color: var(--primary);
    margin-top: 0;
}

.cookie-group {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.required {
    font-size: 0.8rem;
    color: #28a745; /* Green */
    font-weight: 500;
}

/* Switch styling (Toggle button) */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 25px;
}

.slider.round:before {
    border-radius: 50%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
