/* Globální kontejnery nástěnky */
.sportity-full-board, 
.sportity-folder-contents {
    max-width: 100%;
    margin: 20px 0; padding:25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Stylování jednotlivých sekcí (složek) v kompletním výpisu */
.sportity-board-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Nadpisy složek / sekcí */
.sportity-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111111;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #222222;
    display: flex;
    align-items: center;
}

.sportity-title-icon {
    margin-right: 8px;
    font-size: 1.4rem;
}

/* Seznam souborů */
.sportity-file-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Jednotlivý řádek se souborem */
.sportity-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border: 1px solid #eaeeef;
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sportity-file-item:last-child {
    margin-bottom: 0;
}

.sportity-file-item:hover {
    background: #f1f5f7;
    border-color: #d1dbe0;
}

/* Info blok uvnitř řádku */
.sportity-file-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-right: 15px;
}

.sportity-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    display: inline-block;
    line-height: 1;
}

.sportity-file-name {
    font-weight: 500;
    color: #333333;
}

/* Odkazy pro typ Link a Image */
.sportity-file-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s;
}

.sportity-file-link:hover {
    text-decoration: underline;
    color: #003d82;
}

/* Tlačítka pro stažení */
.sportity-btn-download {
    display: inline-block;
    background: #222222;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.sportity-btn-download:hover {
    background: #e2231a; /* Agresivnější rally červená při hoveru */
}

/* Karta pro čistě textová oznámení */
.sportity-file-item.sportity-type-text {
    display: block; /* Textová karta nepotřebuje flex do strany */
    padding: 0;
    background: transparent;
    border: none;
}

.sportity-text-card {
    background: #fff8f0; /* Jemný nádech do žluta/oranžova pro urgentní textové sdělení */
    border-left: 4px solid #f0ad4e;
    border-top: 1px solid #f7e1c1;
    border-right: 1px solid #f7e1c1;
    border-bottom: 1px solid #f7e1c1;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    width: 100%;
}

.sportity-text-title {
    display: block;
    font-size: 1rem;
    color: #613d0c;
    margin-bottom: 6px;
}

.sportity-text-content {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.4;
}

/* Stavy pro prázdné složky nebo chyby */
.sportity-empty-folder, 
.sportity-empty {
    color: #777777;
    font-style: italic;
    margin: 10px 0;
}

.sportity-error {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Responsivní úprava pro mobilní telefony */
@media (max-width: 576px) {
    .sportity-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .sportity-file-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .sportity-btn-download {
        width: 100%;
        text-align: center;
    }
}