:root {
    --primary-color: #0D47AD;
    --light-primary: #e6ecf7;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
    border-radius: 8px; /* Zaokrąglenie rogów logo */
}

.brand-container {
    display: flex;
    align-items: baseline;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
}

.sub-brand {
    font-size: 12px; /* Zmniejszony rozmiar z 16px na 12px */
    margin-left: 5px;
    font-weight: normal; /* Zmienione z bold na normal dla delikatniejszego wyglądu */
    color: var(--text-color);
    opacity: 0.8; /* Dodane przezroczystości dla większej delikatności */
    letter-spacing: 0.5px; /* Delikatnie rozstrzelone litery */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: var(--light-primary);
}

nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

.form-container {
    background-color: var(--light-primary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

select, input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0a3888;
}

.chart-container {
    margin-top: 30px;
    position: relative;
    min-height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.loader {
    display: none;
    text-align: center;
    padding: 40px;
}

.loader-spinner {
    border: 5px solid var(--light-primary);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.videos-section {
    margin-top: 50px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-primary);
    padding-bottom: 10px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 160px;
    background-color: #f0f0f0;
    position: relative;
}

.video-info {
    padding: 12px;
}

.video-title {
    margin-bottom: 5px;
}

.video-meta {
    font-size: 14px;
    color: #666;
}

/* Przykładowy wykres (mock) */
.mock-chart {
    width: 100%;
    height: 350px;
    background-color: white;
}

.export-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.export-button:hover {
    background-color: #0a3888;
}

/* Style dla stron */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    color: var(--primary-color);
}

/* Wstęp i sekcje tekstowe - treść czytelna dla użytkownika i dla wyszukiwarek */
.page-intro {
    margin-bottom: 25px;
}

.page-intro .page-title {
    margin-bottom: 10px;
}

.page-intro p {
    line-height: 1.6;
    color: #555;
}

.seo-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
    color: #555;
}

.seo-section h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.seo-section h2 + p,
.seo-section p + h2 {
    margin-top: 0;
}

.seo-section p {
    margin-bottom: 15px;
}

.seo-section ul {
    margin: 0 0 15px 20px;
}

.seo-section li {
    margin-bottom: 8px;
}

.seo-section a {
    color: var(--primary-color);
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-error {
    margin-top: 12px;
    color: #b00020;
    font-size: 14px;
}

.city-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0 !important;
}

.city-links li {
    margin-bottom: 0;
}

.city-links a {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--light-primary);
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.city-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.video-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background-color: var(--light-primary);
    padding: 15px;
    border-radius: 8px;
}

.filter-group {
    flex: 1;
}

/* Responsive styles for mobile devices */
@media screen and (max-width: 768px) {
    /* Make the header stack vertically on smaller screens */
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }
    
    /* Add space between logo and navigation */
    .logo-container {
        margin-bottom: 15px;
    }
    
    /* Make sure navigation takes full width */
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        width: 100%;
    }
    
    nav ul li:first-child {
        margin-left: 0;
    }
    
    /* Adjust page title for mobile */
    .page-title {
        font-size: 24px;
    }
    
    /* Make video filters stack on mobile */
    .video-filters {
        flex-direction: column;
    }
    
    /* Form adjustments for mobile */
    .form-group {
        min-width: 100%;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .sub-brand {
        font-size: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    button {
        width: 100%;
    }
}