/*
Theme Name: Amics S'Agaró - Sant Pol
Theme URI: https://amicsxsagarosantpol.live
Description: Tema personalitzat per a l'Associació de Veïns amb disseny daurat
Author: Associació de Veïns
Author URI: Joan Puigbert 
Version: 3.1.3 Alpha eleven
License: GPL v2 or later
Text Domain: amics-sagaro
*/

:root {
    --or-profund: #B8860B;
    --or-suau: #DAA520;
    --or-pallid: #F5E6D3;
    --blanc-trencat: #FDF8F0;
    --gris-fosc: #2C2C2C;
    --gris-suau: #6B6B6B;
    --blanc: #FFFFFF;
    --ombra: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gris-fosc);
    background-color: var(--blanc-trencat);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--gris-fosc);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-left: 4px solid var(--or-profund); padding-left: 1rem; }
h3 { font-size: 1.5rem; }

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

a:hover {
    color: var(--or-suau);
}

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

/* Botons */
.btn, .button, button, input[type="submit"] {
    display: inline-block;
    background-color: var(--or-profund);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover, .button:hover, button:hover {
    background-color: var(--or-suau);
    transform: translateY(-2px);
    box-shadow: var(--ombra);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--or-profund);
    color: var(--or-profund);
}

.btn-outline:hover {
    background-color: var(--or-profund);
    color: white;
}

/* Header */
.site-header {
    background-color: var(--blanc);
    box-shadow: var(--ombra);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--or-profund);
    font-family: 'Poppins', sans-serif;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: var(--gris-fosc);
    font-weight: 500;
}

.main-menu a:hover,
.main-menu .current-menu-item a {
    color: var(--or-profund);
}

/* Targetes */
.card {
    background-color: var(--blanc);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--ombra);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-content {
    padding: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--gris-fosc);
    color: var(--blanc-trencat);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-container h4 {
    color: var(--or-suau);
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Formularis */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--or-profund);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

/* Missatges d'error i èxit */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Àrea privada - targetes */
.acces-targetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.targeta-acces {
    background: var(--blanc);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--ombra);
    transition: all 0.3s ease;
}

.targeta-acces:hover {
    transform: translateY(-8px);
}

.targeta-acces .icona {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.targeta-acces h3 {
    color: var(--or-profund);
    margin-bottom: 1rem;
}

.targeta-acces .descripcio {
    color: var(--gris-suau);
    margin-bottom: 1.5rem;
}

/* Pàgina Junta */
.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.membre-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--ombra);
}

.membre-foto {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--or-pallid);
}

.membre-info {
    padding: 1.5rem;
}

.membre-nom {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.membre-carrec {
    color: var(--or-profund);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.membre-email {
    font-size: 0.875rem;
    color: var(--gris-suau);
}

/* Pestanyes Documents */
.documents-tabs {
    margin: 2rem 0;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--or-pallid);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gris-suau);
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--or-profund);
    background-color: var(--or-pallid);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.documents-llista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--blanc);
    border-radius: 8px;
    box-shadow: var(--ombra);
}

.document-info h4 {
    margin-bottom: 0.25rem;
}

.document-info p {
    font-size: 0.875rem;
    color: var(--gris-suau);
}

/* Xat */
.xat-container {
    background: var(--blanc);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--ombra);
}

.xat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--blanc-trencat);
}

.xat-missatge {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--blanc);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.xat-usuari {
    font-weight: 700;
    color: var(--or-profund);
    margin-right: 0.5rem;
}

.xat-hora {
    font-size: 0.75rem;
    color: var(--gris-suau);
}

.xat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
    gap: 0.5rem;
}

.xat-input-area input {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .acces-targetes,
    .junta-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        text-align: center;
        border-radius: 8px;
    }
    
    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn, .button {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* ===== NOUS ESTILS PER AL MENÚ RESPONSIVE ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gris-fosc);
    padding: 0;
    line-height: 1;
}

.menu-toggle:hover {
    background: none;
    transform: none;
    color: var(--or-profund);
}

/* ===== SECCIÓ CRIDA (CTA) A LA PORTADA ===== */
.cta-registre {
    text-align: center;
    background-color: var(--or-pallid);
    padding: 3rem 1rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.cta-registre h2 {
    border-left: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.cta-registre .btn-primary {
    background-color: var(--or-profund);
    color: white;
    box-shadow: var(--ombra);
}

.cta-registre .btn-primary:hover {
    background-color: var(--or-suau);
    transform: translateY(-2px);
}

/* ===== PÀGINA DE REGISTRE ===== */
.page-registre {
    padding: 2rem 0;
}

.page-registre .container {
    max-width: 600px;
    margin: 0 auto;
}

/* ===== DOCUMENTS: VISUALITZADOR PDF ===== */
.pdf-viewer iframe {
    border-radius: 8px;
    box-shadow: var(--ombra);
}

/* ===== CORRECCIÓ PER AL BOTÓ "Fes-te soci" DE L'HERO ===== */
.hero .btn {
    font-size: 1.1rem;
    padding: 12px 28px;
}

/* ===== MILLORES PER AL FORMULARI DE REGISTRE ===== */
#formulari-registre .form-group {
    margin-bottom: 1.25rem;
}

#formulari-registre input {
    width: 100%;
}

/* ===== DOCUMENTS COL·LAPSABLES ===== */
.documents-list {
    margin-top: 2rem;
}
.document-item-collapsible {
    background: var(--blanc);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--ombra);
    overflow: hidden;
}
.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--or-pallid);
    cursor: pointer;
}
.document-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.btn-view {
    background: var(--or-profund);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-view:hover {
    background: var(--or-suau);
}
.document-content {
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* ===== FORMULARI REGISTRE MILLORAT ===== */
#formulari-registre .info-text {
    background: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid var(--or-profund);
    margin: 1.5rem 0;
}
#formulari-registre .data-protection {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
#formulari-registre .data-protection label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
#formulari-registre .data-protection .small {
    font-size: 0.85rem;
    color: var(--gris-suau);
    margin-top: 0.5rem;
}
.required {
    color: #dc3545;
}
.description {
    font-size: 0.85rem;
    color: var(--gris-suau);
    margin-top: 0.25rem;
}

/* ===== NOUS ESTILS PER A LA PORTADA MILLORADA ===== */

/* Targetes d'esdeveniments */
.esdeveniment-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--ombra);
    transition: transform 0.2s;
}
.esdeveniment-card:hover {
    transform: translateY(-4px);
}
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.esdeveniment-data, .esdeveniment-lloc {
    font-size: 0.9rem;
    color: var(--gris-suau);
    margin-bottom: 0.5rem;
}
.btn-small {
    display: inline-block;
    background: var(--or-profund);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.btn-small:hover {
    background: var(--or-suau);
}

/* Notícies */
.noticies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.noticia-card .card-image img {
    height: 180px;
    object-fit: cover;
}
.noticia-data, .post-date {
    font-size: 0.8rem;
    color: var(--gris-suau);
    margin-bottom: 0.5rem;
}

/* Testimonis */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.testimonial-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--ombra);
}
.testimonial-foto img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.testimonial-card blockquote {
    font-style: italic;
    margin: 0 0 1rem;
}
.testimonial-card cite {
    font-weight: bold;
    color: var(--or-profund);
}

/* Contacte i mapa */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}
.contact-map, .contact-form {
    flex: 1;
    min-width: 250px;
}
#osm-map {
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    z-index: 1;
}

/* Beneficis */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.benefit-item {
    background: var(--or-pallid);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

/* Darreres publicacions */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Botó gran per a crida */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Pop-ups */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.popup-content {
    background: var(--blanc);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.popup-image img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Estils per al fòrum */
.new-topic-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.topics-list {
    margin-top: 1rem;
}
.topic-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.topic-item h3 {
    margin-bottom: 0.25rem;
}
.topic-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}
.topic-excerpt {
    font-size: 0.9rem;
}
.pagination {
    text-align: center;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pagination .current {
    background: var(--or-profund);
    color: white;
    border-color: var(--or-profund);
}
.topic-actions {
    margin: 1rem 0;
}
.topic-comments {
    margin-top: 2rem;
}

/* Instagram feed scrollable */
.instagram-feed-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch;
}
#instagram-feed-container {
    display: inline-block;
    white-space: nowrap;
}
.instagram-item {
    display: inline-block;
    width: 200px;
    height: 200px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--ombra);
}
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.instagram-item:hover img {
    transform: scale(1.05);
}
.instagram-follow {
    text-align: center;
    margin-top: 1rem;
}
.instagram-feed-iframe iframe {
    width: 100%;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
}
/* ===== DASHBOARD SOCI MILLORAT ===== */
.soci-dashboard {
    padding: 2rem 0;
}
.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}
.dashboard-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--gris-fosc);
}
.dashboard-subtitle {
    font-size: 1rem;
    color: var(--gris-suau);
    max-width: 600px;
    margin: 0 auto;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.dashboard-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--or-pallid);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.card-icon {
    font-size: 1.5rem;
}
.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gris-fosc);
}
.card-content {
    padding: 1.5rem;
}
.card-footer {
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #eee;
    text-align: right;
}
/* Targeta de dades personals */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #eee;
}
.data-row:last-child {
    border-bottom: none;
}
.data-label {
    font-weight: 600;
    color: var(--gris-fosc);
}
.data-value {
    color: var(--gris-suau);
}
.btn-logout {
    display: inline-block;
    background: none;
    border: none;
    color: var(--or-profund);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}
.btn-logout:hover {
    color: var(--or-suau);
}
/* Targeta d'edició */
.edit-card .form-group {
    margin-bottom: 1.25rem;
}
.edit-card label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.edit-card input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}
.edit-card input:focus {
    border-color: var(--or-profund);
    outline: none;
    box-shadow: 0 0 0 2px rgba(184,134,11,0.1);
}
.edit-card .description {
    font-size: 0.75rem;
    color: var(--gris-suau);
    margin-top: 0.25rem;
}
.btn-small {
    background: var(--or-profund);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-small:hover {
    background: var(--or-suau);
}
/* Accés ràpid */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-links li {
    margin-bottom: 0.75rem;
}
.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.quick-links a:hover {
    background: var(--or-pallid);
    text-decoration: none;
}
/* Targeta d'informació */
.info-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
}
.info-card a {
    color: var(--or-profund);
    text-decoration: underline;
}
.info-card a:hover {
    color: var(--or-suau);
}

/* ===== PÀGINA DE DENEGACIÓ D'ACCÉS ===== */
.dashboard-access-denied {
    padding: 4rem 0;
    text-align: center;
}
.denied-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    padding: 2.5rem;
}
.denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.denied-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gris-fosc);
}
.denied-card p {
    margin-bottom: 2rem;
    color: var(--gris-suau);
}
.denied-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* ===== FÒRUM MILLORAT ===== */
.forum {
    padding: 2rem 0;
}
.forum-header {
    text-align: center;
    margin-bottom: 2rem;
}
.forum-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--gris-fosc);
}
.forum-header p {
    color: var(--gris-suau);
}

.new-topic-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    margin-bottom: 2rem;
    overflow: hidden;
}
.new-topic-card .card-header {
    background: var(--or-pallid);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.new-topic-card .card-header .card-icon {
    font-size: 1.5rem;
}
.new-topic-card .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.new-topic-card .card-content {
    padding: 1.5rem;
}
.new-topic-card .form-group {
    margin-bottom: 1rem;
}
.new-topic-card label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}
.new-topic-card input,
.new-topic-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}
.new-topic-card input:focus,
.new-topic-card textarea:focus {
    border-color: var(--or-profund);
    outline: none;
    box-shadow: 0 0 0 2px rgba(184,134,11,0.1);
}

.topics-section h2 {
    margin-bottom: 1rem;
}
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.topic-item {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: transform 0.2s;
}
.topic-item:hover {
    transform: translateX(5px);
}
.topic-icon {
    font-size: 2rem;
}
.topic-content {
    flex: 1;
}
.topic-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}
.topic-content h3 a {
    color: var(--gris-fosc);
    text-decoration: none;
}
.topic-content h3 a:hover {
    color: var(--or-profund);
}
.topic-meta {
    font-size: 0.8rem;
    color: var(--gris-suau);
    margin-bottom: 0.5rem;
}
.topic-excerpt {
    font-size: 0.9rem;
    color: var(--gris-fosc);
    line-height: 1.4;
}
.no-topics {
    text-align: center;
    padding: 2rem;
    background: var(--blanc);
    border-radius: var(--border-radius);
    color: var(--gris-suau);
}
.pagination {
    margin-top: 2rem;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--gris-fosc);
}
.pagination .current {
    background: var(--or-profund);
    color: white;
    border-color: var(--or-profund);
}
.pagination a:hover {
    background: var(--or-pallid);
    border-color: var(--or-profund);
}

/* ===== XAT MILLORAT ===== */
.xat {
    padding: 2rem 0;
}
.xat-header {
    text-align: center;
    margin-bottom: 2rem;
}
.xat-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--gris-fosc);
}
.xat-header p {
    color: var(--gris-suau);
}

.xat-container {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--ombra);
    overflow: hidden;
}
.xat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
}
.xat-missatge {
    background: var(--blanc);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    max-width: 80%;
    clear: both;
}
.xat-missatge strong {
    color: var(--or-profund);
    display: inline-block;
    margin-right: 0.5rem;
}
.xat-missatge {
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.xat-info, .xat-error {
    text-align: center;
    padding: 2rem;
    color: var(--gris-suau);
}
.xat-error {
    color: #dc3545;
}
.xat-input-area {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: var(--blanc);
}
#xat-form {
    display: flex;
    gap: 0.5rem;
}
#xat-message {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 1rem;
}
#xat-message:focus {
    border-color: var(--or-profund);
    outline: none;
    box-shadow: 0 0 0 2px rgba(184,134,11,0.1);
}
.loading-messages {
    text-align: center;
    color: var(--gris-suau);
    padding: 2rem;
}
/* ===== PÀGINA JUNTA MILLORADA ===== */
.junta-page {
    padding: 2rem 0;
}
.junta-header {
    text-align: center;
    margin-bottom: 3rem;
}
.junta-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--gris-fosc);
}
.junta-header p {
    font-size: 1rem;
    color: var(--gris-suau);
    max-width: 600px;
    margin: 0 auto;
}

.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.membre-card {
    background: var(--blanc);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--ombra);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.membre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.membre-foto {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--or-pallid);
}
.membre-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.membre-card:hover .membre-foto img {
    transform: scale(1.05);
}
.membre-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--or-pallid);
}
.placeholder-icon {
    font-size: 5rem;
    color: var(--or-suau);
    opacity: 0.6;
}

.membre-info {
    padding: 1.5rem;
}
.membre-nom {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gris-fosc);
}
.membre-carrec {
    font-size: 0.9rem;
    color: var(--or-profund);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.membre-email {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--gris-suau);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s;
}
.membre-email:hover {
    color: var(--or-profund);
    border-bottom-color: var(--or-profund);
}

.no-members {
    text-align: center;
    padding: 3rem;
    background: var(--blanc);
    border-radius: var(--border-radius);
    color: var(--gris-suau);
}/* ===== HERO MILLORAT ===== */
.hero {
    background: linear-gradient(135deg, var(--or-pallid) 0%, var(--blanc) 100%);
    padding: 4rem 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gris-fosc);
}
.hero p {
    font-size: 1.2rem;
    color: var(--gris-suau);
    margin-bottom: 2rem;
}
.hero .btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* ===== ESPAIAT ENTRE SECCIONS ===== */
.front-page section {
    margin-bottom: 3rem;
}
.front-page h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.front-page .container > h2:first-child {
    margin-top: 0;
}

/* ===== BENEFICIS AMB ICONES ===== */
.benefit-item {
    transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombra);
}

/* ===== CARDS (per a notícies, posts, etc.) ===== */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-image img {
    transition: transform 0.3s;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

/* ===== TESTIMONIS ===== */
.testimonial-card {
    transition: transform 0.2s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* ===== CTA REGISTRE ===== */
.cta-registre {
    background: var(--or-pallid);
    border-radius: var(--border-radius);
    padding: 3rem 1rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-registre h2 {
    border-left: none;
    padding-left: 0;
}