/* ActuPress Main Stylesheet
   Created for the ISFCE 4IWPB course project
   Based on requirements from param.txt:
   - Main color: red
   - Serif font: Garamond (EB Garamond)
   - Sans-serif font: Dubai
*/

/* ---- Base Styles ---- */
:root {
    --main-color: #e60000;
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --accent-color: #555555;
    --border-color: #dddddd;
    --text-color: #333333;
    --serif-font: 'EB Garamond', Georgia, serif;
    --sans-font: 'Dubai', Arial, sans-serif;
}

body {
    font-family: var(--serif-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans-font);
    font-weight: 500;
    margin-bottom: 1rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #990000;
}

img {
    max-width: 100%;
}

/* ---- Layout ---- */
.container {
    padding: 0 15px;
}

.main-content {
    padding: 2rem 0;
}

/* ---- Header ---- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-logo {
    padding: 1rem 0;
}

.site-logo a {
    font-family: var(--sans-font);
    font-weight: 700;
    font-size: 2rem;
    color: var(--main-color);
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--sans-font);
}

/* ---- Navigation ---- */
.main-nav {
    background-color: var(--main-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    font-family: var(--sans-font);
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

/* ---- Home Page Sections ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.date {
    font-family: var(--sans-font);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.selection-section {
    margin-bottom: 2rem;
}

.featured-article {
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.article-meta {
    margin-bottom: 0.5rem;
}

.source {
    font-family: var(--sans-font);
    text-transform: uppercase;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.article-title {
    font-family: var(--sans-font);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-time {
    font-family: var(--sans-font);
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Side News */
.side-news {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: #ffffff;
}

.weather-widget {
    background-color: var(--light-color);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.weather-widget .location {
    font-family: var(--sans-font);
    font-weight: 500;
}

.weather-widget .temperature {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Secondary News */
.secondary-news {
    margin-bottom: 2rem;
}

.news-card {
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.news-card img {
    width: 100%;
}

.news-card .article-meta {
    padding: 1rem 1rem 0;
}

.news-card .article-title,
.news-card h4 {
    padding: 0 1rem;
}

.news-card .article-time {
    padding: 0 1rem 1rem;
}

.news-card.small {
    padding: 1rem;
}

.category {
    font-family: var(--sans-font);
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Cinema Section */
.cinema-section {
    margin-bottom: 2rem;
}

.news-card.featured {
    padding: 1rem;
}

.article-summary {
    margin-bottom: 1rem;
    font-style: italic;
}

/* ---- Full Article Page ---- */
.article-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.full-article {
    background-color: #ffffff;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-category {
    font-family: var(--sans-font);
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.article-featured-image {
    margin: 1.5rem 0;
    position: relative;
}

.image-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.publish-info, .author-info {
    font-family: var(--sans-font);
    font-size: 0.9rem;
    color: var(--accent-color);
}

.reading-time {
    margin-left: 1rem;
}

.article-content {
    margin-bottom: 2rem;
}

.article-content section {
    margin-bottom: 1.5rem;
}

.article-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.article-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    font-family: var(--sans-font);
    background-color: var(--light-color);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.related-articles h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.related-article h4 {
    font-size: 1rem;
    color: var(--main-color);
}

/* ---- Customization Page ---- */
.custom-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.customization-sidebar {
    background-color: var(--light-color);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.customization-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.customization-form .form-group {
    margin-bottom: 1rem;
}

.customization-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--sans-font);
    font-size: 0.9rem;
}

.preview-container {
    background-color: #ffffff;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.preview-container h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-content {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: #ffffff;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--dark-color);
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-logo {
    font-family: var(--sans-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.site-footer h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #dddddd;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        flex: 0 0 50%;
    }
    
    .featured-article .row {
        flex-direction: column;
    }
    
    .featured-article .col-md-6 {
        width: 100%;
    }
    
    .side-news {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .nav-menu li {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date {
        margin-top: 0.5rem;
    }
}