/* ==================== */
/* RESET I PODSTAWOWE STYLE */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #d9d9d9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==================== */
/* HEADER */
/* ==================== */
.header-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.header-background {
    width: 100%;
    height: 100%;
    background-image: url('files/BackgroundMain.png');
    background-size: cover;
    background-position: center;
    background-position-y: -400px;
    filter: brightness(0.7);
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.logo {
    max-width: 400px;
    max-height: 200px;
}

/* ==================== */
/* NAWIGACJA */
/* ==================== */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 2px solid #8c9e6e;
    border-bottom: 1px solid #3a3a3a;
    background-color: #2a2a2a;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    padding: 10px;
}

.nav-logo {
    color: #8c9e6e;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.nav-logo span {
    color: #d9d9d9;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #d9d9d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #8c9e6e;
}

.nav-icon {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */
main {
    flex: 1;
    padding: 40px 0;
}

/* ==================== */
/* FOOTER */
/* ==================== */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-heading {
    color: #8c9e6e;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-heading i {
    margin-right: 10px;
    font-size: 1rem;
}

.footer-text {
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links li, 
.footer-contact li {
    margin-bottom: 10px;
    list-style: none;
    display: flex;
    align-items: center;
}

.footer-links a, 
.footer-contact li {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.footer-links i, 
.footer-contact i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: #8c9e6e;
}

.footer-bottom {
    background-color: #151515;
    padding: 15px 0;
    border-top: 1px solid #2a2a2a;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #777;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #8c9e6e;
}

/* ==================== */
/* SEKCJA HERO */
/* ==================== */
.hero-section {
    position: relative;
    height: 500px;
    background-image: url('files/3_MainPage.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #d9d9d9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== */
/* PRZYCISKI */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #8c9e6e;
    color: #1a1a1a;
}

.btn-primary:hover {
    background-color: #a8bf85;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #d9d9d9;
    border: 2px solid #8c9e6e;
}

.btn-secondary:hover {
    background-color: rgba(140, 158, 110, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ==================== */
/* SEKCJE OGÓLNE */
/* ==================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    color: #8c9e6e;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    margin-right: 10px;
}

.section-divider {
    width: 100px;
    height: 3px;
    background-color: #8c9e6e;
    margin: 15px auto;
}

/* ==================== */
/* SEKCJA O NAS */
/* ==================== */
.about-section {
    padding: 60px 0;
    background-color: #1e1e1e;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    height: 300px;
    background-color: #2a2a2a;
    border: 2px solid #8c9e6e;
    background-image: url('files/2_MainPage.png');
    background-size: cover;
    background-position: center;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features-list i {
    color: #8c9e6e;
    margin-right: 10px;
}

/* ==================== */
/* SEKCJA NAJBLIŻSZE ROZGRYWKI */
/* ==================== */
.next-events-section {
    padding: 60px 0;
    background-color: #2a2a2a;
}

.events-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.event-card {
    display: flex;
    background-color: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    border-left: 4px solid #8c9e6e;
}

.event-date {
    background-color: #1e1e1e;
    color: #8c9e6e;
    padding: 20px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-title {
    color: #8c9e6e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.event-meta i {
    margin-right: 5px;
    color: #8c9e6e;
}

.event-description {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.event-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-otwarte {
    background-color: #28a745;
    color: white;
}

.status-zapisy {
    background-color: #17a2b8;
    color: white;
}

.status-planowane {
    background-color: #6c757d;
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #8c9e6e;
}

.section-footer {
    text-align: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 10px;
    }
}

/* ==================== */
/* SEKCJA DOŁĄCZ DO NAS */
/* ==================== */
.join-section {
    position: relative;
    padding: 80px 0;
    background-image: url('files/1_MainPage.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.join-content {
    position: relative;
    z-index: 1;
}

.join-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #8c9e6e;
}

.join-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== */
/* STRONA KLANÓW */
/* ==================== */
.clans-page {
    padding: 40px 0;
    background-color: #1a1a1a;
}

.clans-section {
    padding: 20px 0;
}

.section-subtitle {
    color: #b0b0b0;
    margin-top: 10px;
    font-size: 1rem;
}

.clans-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9e6e;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #d9d9d9;
    font-size: 1rem;
}

.filter-select {
    padding: 10px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #d9d9d9;
    font-size: 1rem;
    min-width: 200px;
}

.clans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.clan-card {
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    border-left: 4px solid #8c9e6e;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.clan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.clan-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.clan-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #8c9e6e;
}

.clan-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clan-name {
    color: #8c9e6e;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.clan-country {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.clan-details {
    padding: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #444;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    color: #8c9e6e;
    font-weight: bold;
}

.detail-label i {
    margin-right: 8px;
}

.detail-value {
    color: #d9d9d9;
}

.clan-join {
    display: block;
    text-align: center;
    margin: 0 20px 20px;
    padding: 12px;
}

/* Responsywność */
@media (max-width: 768px) {
    .clans-filters {
        flex-direction: column;
    }
    
    .search-box, .filter-select {
        width: 100%;
    }
    
    .clans-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* STRONA HARMONOGRAMU */
/* ==================== */
.schedule-page {
    padding: 40px 0;
    background-color: #1a1a1a;
}

.schedule-section {
    padding: 20px 0;
}

.upcoming-events {
    margin-top: 40px;
}

.events-title {
    color: #8c9e6e;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.events-title i {
    margin-right: 10px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-date {
    background-color: #1e1e1e;
    color: #8c9e6e;
    padding: 15px;
    text-align: center;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 15px;
    flex: 1;
}

.event-name {
    color: #d9d9d9;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.event-meta i {
    margin-right: 5px;
    color: #8c9e6e;
}

/* Responsywność */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .event-day, .event-month {
        font-size: 1.2rem;
    }
}

/* ==================== */
/* RESPONSYWNOŚĆ */
/* ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 10px;
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ==================== */
/* RESPONSYWNOŚĆ */
/* ==================== */
@media (max-width: 768px) {
    /* Nawigacja */
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 5px 15px;
    }
    
    .logo {
        max-width: 80%;
    }
    
    /* Footer */
    .footer-section {
        flex: 100%;
        margin-bottom: 25px;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
