/*
Theme Name: ACUP Theme
Description: Theme personalitzat per ACUP amb suport per blocs ACF i Gutenberg
Version: 1.0.0
Author: ACUP Team
Text Domain: acup
*/

/* Reset bàsic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Contenidor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Blocks container */
.acup-blocks-container {
    margin: 2rem 0;
}

.post-content-text ul,
.post-content-text ol {
    padding-left: 30px;
    margin-top: 20px;
    margin-bottom: 20px;

}

.acup-enllacos-list,
.acup-fitxers-list {
    list-style: none;
    padding: 30px 25px;
}

.acup-enllacos-list li,
.acup-fitxers-list li {
    margin-bottom: 10px;
}

.acup-enllacos-list a,
.acup-fitxers-list a {
    color: #333;
    text-decoration: underline !important;
}

/* Archive page */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0073aa;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #0073aa;
}

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

.cat-links a {
    color: #0073aa;
    text-decoration: none;
}

.cat-links a:hover {
    text-decoration: underline;
}

.entry-summary {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005177;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h1 {
    margin-bottom: 1rem;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.link-indicadors {
    color: #AD2624;
    font-size: 1.2rem;
}