:root {
    /* Color System - Matching politica-botosani.html */
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #dc2626;
    --accent: #059669;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;

    /* Legacy support */
    --primary-color: #1e3a8a;
    --primary-dark: #003d82;
    --secondary-color: #00a8cc;
    --accent-color: #ffa500;
    --text-color: #1a202c;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--primary), var(--primary-light));

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* Header Banner */
.header-banner {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.header-left {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: #555;
    align-items: center;
}

.time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 144, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-weight: bold;
    color: var(--primary);
}

.weather-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Main Content */
main {
    flex: 1;
}

.main-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 25px 0 15px;
    color: var(--primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.subtitle {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark);
    font-weight: bold;
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.2);
}

.search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.card-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Special Card Styles */
.card-special {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
}

.card-special .card-icon {
    color: #fff;
}

.card-special .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.card-about {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
    color: white;
}

.card-about .card-icon {
    color: #fff;
}

.card-about .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.card-development {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.card-development .card-icon {
    color: #fff;
}

.card-development .card-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
    border: none;
}

.chat-button:hover {
    transform: scale(1.1);
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.6);
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 40px 0 20px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-muted);
    font-weight: 500;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    .header-right {
        flex-direction: column;
        gap: 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
    }

    .breadcrumb-container {
        font-size: 0.85rem;
    }

    .page-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}