/* Schilcher Announcements Frontend Styles */

/* Slide-down animation */
@keyframes schilcher-banner-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Banner bar container */
.schilcher-announcements-bar {
    position: fixed;
    top: var(--schilcher-header-height, 0px);
    left: 0;
    right: 0;
    z-index: 9998;
    background: transparent;
    animation: schilcher-banner-slide-down 0.3s ease-out;
}

/* Individual banner */
.schilcher-announcement-banner {
    width: 100%;
    background: #fef8e7;
    border-bottom: 1px solid #f5f0e6;
}

/* Banner inner content container */
.schilcher-announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
}

/* Thumbnail */
.schilcher-announcement-thumb img,
img.schilcher-announcement-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Message text */
.schilcher-announcement-text {
    flex: 1;
    color: #49391b;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Dismiss button */
.schilcher-announcement-dismiss {
    background: none;
    border: none;
    color: #bda77f;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.schilcher-announcement-dismiss:hover {
    color: #49391b;
}

/* Collapse toggle area */
.schilcher-announcements-more {
    text-align: center;
    background: #f5f0e6;
    border-bottom: 1px solid #f5f0e6;
}

/* Toggle button */
.schilcher-announcements-toggle {
    background: none;
    border: none;
    color: #876c4b;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 16px;
    font-family: 'Open Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.schilcher-announcements-toggle:hover {
    color: #49391b;
}

/* Toggle arrow */
.schilcher-toggle-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

/* Arrow rotated when expanded */
.schilcher-announcements-toggle.is-expanded .schilcher-toggle-arrow {
    transform: rotate(180deg);
}

/* Dismiss animation utility */
.schilcher-announcement-banner.is-dismissing {
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
    overflow: hidden;
    opacity: 0;
}

/* Responsive — mobile */
@media (max-width: 480px) {
    .schilcher-announcement-thumb {
        display: none;
    }

    .schilcher-announcement-inner {
        padding: 8px 12px;
    }
}
