/* DAF Holidays Plugin v1.3 – usfriends-il.de */

.daf-holidays-wrapper {
    font-family: inherit;
    max-width: 720px;
    margin: 1.5em 0;
}

.daf-holidays-title {
    font-size: 1.25em;
    margin-bottom: 0.75em;
    color: #1a3a6e;
    border-bottom: 3px solid #c0392b;
    padding-bottom: 0.35em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Flag icons via pure CSS (keine externen Bilder nötig) */
.daf-flag-icon {
    display: inline-block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    background-size: cover;
}
.daf-flag-icon.daf-us {
    background: linear-gradient(
        to bottom,
        #B22234 0%, #B22234 7.7%,
        #fff 7.7%, #fff 15.4%,
        #B22234 15.4%, #B22234 23.1%,
        #fff 23.1%, #fff 30.8%,
        #B22234 30.8%, #B22234 38.5%,
        #fff 38.5%, #fff 46.2%,
        #B22234 46.2%, #B22234 53.8%,
        #fff 53.8%, #fff 61.5%,
        #B22234 61.5%, #B22234 69.2%,
        #fff 69.2%, #fff 76.9%,
        #B22234 76.9%, #B22234 84.6%,
        #fff 84.6%, #fff 92.3%,
        #B22234 92.3%, #B22234 100%
    );
    position: relative;
    overflow: hidden;
}
.daf-flag-icon.daf-us::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 54%;
    background: #3C3B6E;
}
.daf-flag-icon.daf-de {
    background: linear-gradient(
        to bottom,
        #000 0%, #000 33.33%,
        #DD0000 33.33%, #DD0000 66.66%,
        #FFCE00 66.66%, #FFCE00 100%
    );
}

/* iCal Download Button */
.daf-ical-buttons {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex-wrap: wrap;
}

.daf-ical-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: #1a3a6e;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.45em 1em;
    border-radius: 5px;
    font-size: 0.88em;
    font-weight: 600;
    transition: background 0.18s;
    border: none;
    cursor: pointer;
}
.daf-ical-btn:hover {
    background: #c0392b !important;
    color: #fff !important;
}
.daf-ical-btn svg {
    flex-shrink: 0;
}
.daf-ical-hint {
    font-size: 0.78em;
    color: #888;
}

/* Liste */
.daf-holidays-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.daf-holidays-list li.daf-holiday {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.5em 0.75em;
    border-radius: 6px;
    margin-bottom: 0.3em;
    background: #f7f9fc;
    border-left: 4px solid #2e7d32;
    transition: background 0.15s;
}
.daf-holidays-list li.daf-holiday.past {
    opacity: 0.45;
    border-left-color: #bbb;
    background: #f2f2f2;
}
.daf-holidays-list li.daf-holiday.today {
    background: #fffbe6;
    border-left-color: #f0b429;
    font-weight: bold;
}
.daf-holidays-list li.daf-holiday.upcoming {
    border-left-color: #1a3a6e;
}

.daf-holiday-date {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    font-size: 0.875em;
    color: #333;
}
.daf-holiday-date em {
    font-size: 0.8em;
    color: #999;
    font-style: normal;
}
.daf-holiday-name {
    flex: 1;
    font-size: 0.93em;
}
.daf-holiday-badge {
    font-size: 0.8em;
    background: #f0b429;
    color: #fff;
    padding: 0.1em 0.45em;
    border-radius: 4px;
    white-space: nowrap;
}
.daf-holidays-empty {
    color: #888;
    font-style: italic;
}

@media (max-width: 520px) {
    .daf-holidays-list li.daf-holiday { flex-wrap: wrap; }
    .daf-holiday-date { min-width: unset; }
    .daf-ical-buttons { flex-direction: column; align-items: flex-start; }
}
