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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    transition: all 0.3s ease;
}

.navbar {
    background: #2563eb;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-section:visited {
    color: inherit;
}

.logo-img {
    height: 40px;
    width: auto;
    transform: scaleX(-1);
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
}

.nav-link:hover, .nav-link.active {
    background: #555;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: #555;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    aspect-ratio: 16/9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.text-section, .more-text {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.button-section, .form-section, .checkbox-section, .slider-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn.primary {
    background: #007bff;
    color: white;
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.input-field, .select-field, .textarea-field {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.textarea-field {
    height: 100px;
    resize: vertical;
}

.checkbox-section label, .radio-group label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
}

.slider {
    width: 100%;
    margin: 1rem 0;
}

.color-picker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.output-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.output-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    min-height: 100px;
}

.dark-theme {
    background-color: #222;
    color: #fff;
}

.dark-theme .navbar {
    background: #111;
}

.dark-theme .content, 
.dark-theme .text-section, 
.dark-theme .more-text,
.dark-theme .image-gallery,
.dark-theme .button-section,
.dark-theme .form-section,
.dark-theme .checkbox-section,
.dark-theme .slider-section,
.dark-theme .output-section,
.dark-theme .main-article,
.dark-theme .content-box,
.dark-theme .ad-space,
.dark-theme .player-highlight {
    background: #333;
    color: #fff;
}

.dark-theme .car-table,
.dark-theme .dropdown-item {
    background: #333;
    color: #fff;
    border-color: #555;
}

.dark-theme .car-table th {
    background: #444;
    color: #fff;
}

.dark-theme .dropdown-header {
    background: #444;
    color: #fff;
}

.dark-theme .dropdown-content {
    background: #333;
    border-color: #555;
}

.dark-theme .article-header h1 {
    color: #fff;
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #fff;
}

.dark-theme p,
.dark-theme span,
.dark-theme li {
    color: #e0e0e0;
}

.dark-theme .article-meta {
    color: #bbb;
}

.dark-theme .player-info h4,
.dark-theme .player-info p {
    color: #fff;
}

.dark-theme .content-box h3 {
    color: #fff;
}

.news-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.news-layout.single-column {
    grid-template-columns: 1fr;
}

.main-article {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.sidebar-ad {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-box {
    background: white;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-box h3 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.1rem;
}

.content-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.content-box li:hover {
    color: #2563eb;
}

.content-box li:last-child {
    border-bottom: none;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-header {
    padding: 0.75rem;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: background 0.3s;
    user-select: none;
}

.dropdown-header:hover {
    background: #e9ecef;
}

.dropdown-content {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    display: none;
}

.dropdown-content.active {
    display: block;
}

.player-highlight {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.highlight-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.player-info h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.player-info p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.weather-current {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.weather-main {
    text-align: center;
}

.weather-main .temp {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #2563eb;
}

.weather-main .condition {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

.weather-details p {
    margin: 0.5rem 0;
    color: #555;
}

.dark-theme .weather-main .temp {
    color: #60a5fa;
}

.dark-theme .weather-main .condition,
.dark-theme .weather-details p {
    color: #bbb;
}

.weather-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.weather-links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.weather-links a:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.dark-theme .weather-links a {
    background: #60a5fa;
    color: #000;
}

.dark-theme .weather-links a:hover {
    background: #3b82f6;
}

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

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

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

.newsletter-ribbon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.newsletter-ribbon.show {
    display: block;
}

.ribbon-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.ribbon-btn {
    background: white;
    color: #2563eb;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.ribbon-btn:hover {
    background: #f0f0f0;
}

.ribbon-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.25rem;
}

.ribbon-close:hover {
    opacity: 0.7;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dark-theme .newsletter-ribbon {
    background: #60a5fa;
    color: #000;
}

.dark-theme .ribbon-btn {
    background: #000;
    color: #60a5fa;
}

.dark-theme .ribbon-btn:hover {
    background: #333;
}

.dark-theme .ribbon-close {
    color: #000;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-article {
    grid-column: 1 / -1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.secondary-article {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.secondary-article h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.secondary-article p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.weather-widget {
    text-align: center;
}

.weather-widget .temp {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
    margin: 0.5rem 0;
}

.weather-widget .condition {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.weather-widget p {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    color: #555;
}

.dark-theme .featured-article,
.dark-theme .secondary-article {
    background: #333;
    color: #fff;
}

.dark-theme .weather-widget .temp {
    color: #60a5fa;
}

.dark-theme .weather-widget .condition,
.dark-theme .weather-widget p {
    color: #bbb;
}

.article-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 1500;
    display: none;
}

.article-vignette.show {
    display: block;
}

.popup-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.5s ease;
}

.popup-ad.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.popup-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease 0.2s both;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.popup-close:hover {
    color: #000;
}

.popup-content h2 {
    margin-bottom: 1rem;
    color: #2563eb;
}

.popup-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.popup-content p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dark-theme .popup-content {
    background: #333;
    color: white;
}

.dark-theme .popup-close {
    color: #ccc;
}

.dark-theme .popup-close:hover {
    color: white;
}

.ad-space {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

.ad-space p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.8rem;
}

.ad-space img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.inline-ad {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 4px;
}

.inline-ad p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.8rem;
}

.inline-ad img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

.car-table th,
.car-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.car-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.car-table tr:hover {
    background: #f5f5f5;
}

/* Display Settings */
.large-text {
    font-size: 1.2em;
}

.large-text h1 { font-size: 3em; }
.large-text h2 { font-size: 2.4em; }
.large-text h3 { font-size: 1.8em; }
.large-text .btn { font-size: 1.2em; }
.large-text .nav-link { font-size: 1.3em; }

.high-contrast {
    filter: contrast(150%);
}

.high-contrast .btn.primary {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

.high-contrast .btn.secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.reduced-animations * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.display-settings label {
    display: block;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .content-grid, .test-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar-ad {
        order: 2;
    }
    
    .main-article {
        order: 1;
    }
}