/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Typography */
h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #2c3e50;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-small {
    padding: 6px 10px;
    font-size: 14px;
}

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #6c7a7a;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* News Articles */
.news-container {
    margin-top: 20px;
}

.news-article {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.news-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.article-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Current Settings Display */
.current-settings {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

/* Accessibility Features */
.accessibility-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #e8f4fc;
    border-radius: 4px;
}

.accessibility-info h3 {
    margin-bottom: 10px;
    color: #2980b9;
}

.accessibility-info ul {
    margin-left: 20px;
}

.accessibility-controls {
    margin-bottom: 20px;
}

.accessibility-controls summary {
    cursor: pointer;
    color: #3498db;
    font-weight: bold;
    padding: 10px;
    background-color: #f1f9fe;
    border-radius: 4px;
}

.tips-content {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 4px 4px;
}

.tips-content p {
    margin-bottom: 8px;
}

.language-indicator {
    display: inline-block;
    padding: 2px 6px;
    background-color: #f1f9fe;
    border-radius: 4px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }
    
    .container, .news-article, .current-settings {
        border: 1px solid black;
    }
    
    .btn {
        border: 2px solid black;
    }
}

/* Focus States for Keyboard Navigation */
a:focus, button:focus, select:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}