/* ----------------------------------------------------------------------------
   Feed Panels (General)
   ---------------------------------------------------------------------------- */
.feed-panel {
    background-color: rgba(95, 95, 95, 0.25);
    border: 1px solid rgba(145, 145, 145, 0.25);
    border-radius: 12px;
    padding: 10px;
    margin: 2px auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 75%;
    max-width: 75%;
}

@media screen and (max-width: 720px) {
    .feed-panel {
        min-width: 100%;
        max-width: 100%;
    }
}

.feed-content-panel-row .feed-panel {
    flex: 1;
    min-height: 0;
}

.feed-panel-title {
    color: #eee;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-align: center;
}

/* ----------------------------------------------------------------------------
   Entries Panel (Row 1)
   ---------------------------------------------------------------------------- */
.feed-tag-panel-row {
    width: 95%;
    padding: 0 20px 5px 20px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.feed-entries-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 95%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0) 100%
    );
}

.feed-entries-list::-webkit-scrollbar {
    height: 4px;
}

.feed-entries-list::-webkit-scrollbar-track {
    background: transparent;
}

.feed-entries-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.feed-entry-card {
    background-color: rgba(70, 70, 70, 0.5);
    border: 1px solid rgba(145, 145, 145, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
}

.feed-entry-card:hover {
    background-color: rgba(90, 90, 90, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feed-entry-title {
    color: #eee;
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.feed-entry-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin: 0 0 8px 0;
}

.feed-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.feed-tag-pill {
    background-color: rgba(199, 153, 92, 0.3);
    border: 1px solid rgba(199, 153, 92, 0.5);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.75em;
    color: #c7995c;
}

/* ----------------------------------------------------------------------------
   Content Panel (Row 2)
   ---------------------------------------------------------------------------- */
.feed-content-panel-row {
    width: 95%;
    padding: 0 20px 5px 20px;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.feed-content-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    min-height: 135px;

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 95%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0) 100%
    );
}

.feed-content-list::-webkit-scrollbar {
    height: 4px;
}

.feed-content-list::-webkit-scrollbar-track {
    background: transparent;
}

.feed-content-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.feed-content-card {
    background-color: rgba(70, 70, 70, 0.5);
    border: 1px solid rgba(145, 145, 145, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 225px;
    height: 100%;
    min-height: 150px;
}

.feed-content-card:hover {
    background-color: rgba(90, 90, 90, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feed-content-image {
    width: 100%;
    flex: 1;
    min-height: 100px;
    object-fit: cover;
}

.feed-content-title {
    color: #eee;
    font-size: 0.9em;
    font-weight: 600;
    margin: 10px;
    text-align: center;
}

/* ----------------------------------------------------------------------------
   Playlist Panel (Row 3)
   ---------------------------------------------------------------------------- */
.feed-playlist-panel-row {
    width: 95%;
    padding: 0 20px 10px 20px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.feed-playlist-panel-row.hidden {
    display: none;
}

.feed-playlists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
}

/* Playlist Buttons */
.feed-playlist-panel .playlist-button-container {
    position: relative;
}

.feed-playlist-panel .favorite-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    background-color: rgba(155, 155, 155, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-weight: normal;
    padding: 12px 16px;
    flex-shrink: 0;
    width: 120px;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-playlist-panel .favorite-icon-button img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}

.feed-playlist-panel .favorite-icon-button:hover {
    background-color: rgba(155, 155, 155, 0.15);
}

.feed-playlist-panel .favorite-icon-button.active {
    box-shadow: inset 2px 2px 5px #b8b9be, 
                inset -3px -3px 7px #fff;
}

.feed-playlist-panel .favorite-icon-name {
    font-size: 0.95em;
    color: #b0b0b0;
    margin-top: 4px;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------------------------------
   Events Panel (Row 4)
   ---------------------------------------------------------------------------- */
.feed-events-panel-row {
    width: 95%;
    padding: 0 20px 10px 20px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.feed-events-panel-row.hidden {
    display: none;
}

.feed-events-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 10px;
    /* Scrollbar styles consolidated in main.css */

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 95%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0) 100%
    );
}

.feed-event-card {
    background-color: rgba(70, 70, 70, 0.5);
    border: 1px solid rgba(145, 145, 145, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
}

.feed-event-card:hover {
    background-color: rgba(90, 90, 90, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feed-event-card.is-today {
    background-color: rgba(231, 76, 60, 0.25);
    border-color: rgba(170, 32, 32, 0.5);
}

.feed-event-card.is-tomorrow {
    background-color: rgba(231, 76, 60, 0.25);
    border-color: rgba(170, 32, 32, 0.5);
}

.feed-event-title {
    color: #eee;
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.feed-event-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

/* ----------------------------------------------------------------------------
   Status Icons Panel (Row 5)
   ---------------------------------------------------------------------------- */
.feed-status-icons-panel-row {
    flex: 0 0 auto;
    padding: 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feed-status-icons-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(215, 215, 215, 0.5);
    border-radius: 25px;
    height: 50px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    width: 70%;
    max-width: 450px;
    margin: 0 auto;
}

@media screen and (max-width: 600px) {
    .feed-status-icons-list {
        justify-content: flex-start;
    }
}

.feed-status-icons-list::-webkit-scrollbar {
    height: 4px;
}

.feed-status-icons-list::-webkit-scrollbar-track {
    background: transparent;
}

.feed-status-icons-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.feed-status-icons-list .icon-menu-item {
    flex-shrink: 0;
    position: relative;
}

.feed-status-icons-list .icon-menu-item.feed-status-icon-selected {
    background-color: rgba(100, 150, 255, 0.2);
    border-radius: 12px;
    padding: 2px 6px;
}

.feed-status-icons-list .icon-menu-item.feed-status-icon-selected img {
    opacity: 1 !important;
    filter: grayscale(0) !important;
}

/* Status Icon Text Overlays */
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-temp-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-sun-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-feelslike-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-humidity-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-wind-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-cloudiness-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-rain-text,
.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-text-overlay {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-temp-text:not(.weather-temp-current):not(.weather-temp-highlow) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-temp-current {
    top: 35%;
    font-size: 0.7em;
}

.feed-status-icons-list .icon-menu-item:not(.feed-status-icon-selected) .weather-temp-highlow {
    top: 65%;
    font-size: 0.55em;
    opacity: 0.85;
}

/* ----------------------------------------------------------------------------
   Empty States
   ---------------------------------------------------------------------------- */
.feed-empty-message {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}