/* Podstawowe style - barwy Blaugrana i Senyera */
:root {
    --barca-blue: #004d98;
    --barca-red: #A50044;
    --catalan-yellow: #FCD116; 
    --bg-content: rgba(255, 255, 255, 0.96);
    --text-dark: #1a1a1a;
    --legal-gray: #4a4a4a;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--barca-blue);
    position: relative;
    z-index: 0;
}

/* Obsługa wielu języków (ukrywanie i pokazywanie) */
[data-lang="pl"] .lang-en, [data-lang="pl"] .lang-ca { display: none !important; }
[data-lang="en"] .lang-pl, [data-lang="en"] .lang-ca { display: none !important; }
[data-lang="ca"] .lang-pl, [data-lang="ca"] .lang-en { display: none !important; }

/* Znak wodny ze zdjęć */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        url('/assets/DSC_0374.JPG'), 
        url('/assets/DSC_0378.JPG'), 
        url('/assets/DSC_0379.JPG'), 
        url('/assets/DSC_0380.JPG');
    background-size: 50vw 50vh, 50vw 50vh, 50vw 50vh, 50vw 50vh;
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    opacity: 0.15;
    filter: grayscale(100%);
    mix-blend-mode: luminosity;
    z-index: -1;
}

/* GÓRNY PASEK */
header {
    background: linear-gradient(to right, var(--barca-red), var(--barca-blue));
    color: white;
    padding: 20px 0;
    border-bottom: 6px solid var(--catalan-yellow);
}

.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 90px;
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    height: 144px; 
    margin-right: 25px; 
}

.header-branding {
    display: flex;
    align-items: center;
    text-align: left;
    margin: 25px 25px 25px 0;
}

/* Make a one column-layout instead of three-column layout */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
    }
    .header-branding {
        text-align: center;
        margin-top: 0;
    }
}

.branding-title {
    display: flex;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 900; 
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

/* Prawa strona nagłówka (ikony) */
.header-right {
    margin: 0 25px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.header-socials {
    display: flex;
    gap: 12px;
}

.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.header-socials a:hover {
    background-color: var(--catalan-yellow);
    color: var(--barca-blue);
    transform: translateY(-2px);
}

.header-socials svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* NAWIGACJA JAKO ZAKŁADKI Z FLAGAMI */
nav {
    background-color: #222;
    color: white;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    position: relative;
}

.nav-tabs {
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: #333;
}

nav a.active {
    color: var(--catalan-yellow);
    border-bottom: 3px solid var(--catalan-yellow);
    background-color: #1a1a1a;
}

.nav-flags {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-flags button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-flags button:hover {
    transform: scale(1.15);
}

.flag-icon {
    width: 28px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    object-fit: cover;
}

/* KONTENER GŁÓWNY I SYSTEM ZAKŁADEK */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 50px;
    background-color: var(--bg-content);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 12px;
    position: relative;
    z-index: 1; 
}

/* Klasy odpowiedzialne za ukrywanie/pokazywanie treści */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STYLIZACJA SEKCJI 'HOME' (EKRAN STARTOWY) */
.hero-section {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(to right, rgba(165, 0, 68, 0.7), rgba(0, 77, 152, 0.7)), url('/assets/wroclaw.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--catalan-yellow);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-motto {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: bold;
    margin-top: 15px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}

.home-welcome-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.15rem;
}

/* STYLIZACJA SEKCJI 'O NAS' */
.about-header {
    color: var(--barca-blue);
    font-size: 2.2rem;
    border-bottom: 2px solid var(--barca-red);
    padding-bottom: 15px;
    margin-top: 0;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 25px 0;
}

.about-goals {
    background-color: #f8f9fa;
    border-left: 5px solid var(--catalan-yellow);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
}

.about-goals ul {
    margin-bottom: 30px;
    padding-left: 20px;
    line-height: 1.7;
}

.about-goals ul li {
    margin-bottom: 10px;
}

/* STYLIZACJA STATUTU */
.statute-content {
    text-align: justify;
}

.statute-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--barca-red);
    padding-bottom: 20px;
}

.statute-header h2 {
    font-size: 1.95rem; 
    margin: 0 0 10px 0;
    color: var(--barca-red);
    text-transform: uppercase;
}

.statute-founding-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 20px auto;
    display: block;
}

.chapter-title {
    background-color: #f1f1f1;
    padding: 10px 20px;
    border-left: 5px solid var(--barca-blue);
    margin: 40px 0 20px 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--barca-blue);
    text-transform: uppercase;
}

.section-title {
    font-weight: bold;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 10px;
    display: block;
    color: var(--barca-red);
}

.statute-text {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.statute-list {
    margin-bottom: 20px;
    padding-left: 30px;
    font-size: 1.05rem;
}

.statute-list li {
    margin-bottom: 8px;
}

/* FORMULARZ ZGŁOSZENIOWY */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: var(--barca-blue);
}

.form-group label span {
    flex-wrap: wrap;

}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.radio-group {
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    background: #f8f9fa; 
    padding: 10px; 
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.form-group .radio-group input {
    width: auto;
}

.radio-group__item {
    display: flex;
    flex-wrap: wrap;
    font-weight: normal; 
    color: var(--text-dark);
    margin-top: 5px;
    margin-bottom: 8px;
    position: relative;
    gap: 8px;
    cursor: pointer;
    min-width: 45%;
}

.btn {
    background-color: var(--barca-red);
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
}
.btn:hover {
    background-color: var(--barca-blue);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
}

/* STOPKA */
footer {
    background: linear-gradient(to right, var(--barca-red), var(--barca-blue));
    border-top: 6px solid var(--catalan-yellow);
    color: white;
    text-align: center;
    padding: 40px;
    margin-top: 60px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: underline;
}

@media (max-width: 850px) {
    .header-container { padding-left: 20px; }
    .header-right { margin-right: 20px; }
    .branding-title { font-size: 1.5rem; }
    .header-logo { height: 112px; margin-right: 15px; } 
    
    .container { padding: 20px; margin: 20px; }
    nav { flex-direction: column; }
    .nav-tabs { width: 100%; justify-content: center; flex-wrap: wrap; }
    nav a { padding: 12px 10px; font-size: 0.85rem; }
    .nav-flags { position: static; padding: 10px 0; justify-content: center; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.8rem; }
    .hero-motto { font-size: 1.2rem; }
    .hero-section { height: 300px; }
}
