@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700;800&display=swap');

/* ============================================================
   SA MusicZone Widget — Modern Two-Tone Green Undertone Theme
   ============================================================ */

/* Container for the entire widget */
.sa-musiczone-widget-container {
    padding: 24px;
    background: linear-gradient(160deg, #d4ede0 0%, #e0f2e9 50%, #cce8d8 100%);
    margin: 12px 0;
    font-size: 15px;
    box-sizing: border-box;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Subtle two-tone texture overlay */
.sa-musiczone-widget-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(52, 211, 103, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Thin accent line at top */
.sa-musiczone-widget-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #34d367, #10b981, transparent);
    z-index: 1;
}

/* All children above overlay */
.sa-musiczone-widget-container > * {
    position: relative;
    z-index: 2;
}

/* Widget title */
.sa-musiczone-widget-container h2 {
    text-align: center;
    justify-content: center;
    color: #1a3d28;
    margin: 0 0 20px !important;
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Green accent dot — hidden */
.sa-musiczone-widget-container h2::before {
    display: none;
}

/* Loading message styling */
.sa-musiczone-widget-container .loading-message {
    text-align: center;
    color: #6b9a7a;
    font-style: italic;
    padding: 20px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

/* Grid for the posts */
.sa-musiczone-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Individual post item styling */
.sa-musiczone-post-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #f0faf4 100%);
    border: 1px solid rgba(26, 61, 40, 0.15);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    font-size: 15px;
}

.sa-musiczone-post-item:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 61, 40, 0.4);
    box-shadow: 0 12px 32px rgba(26, 61, 40, 0.15), 0 0 0 1px rgba(52, 211, 103, 0.15);
}

/* Thumbnail wrapper to allow overlay effect */
.sa-musiczone-post-thumbnail-wrap {
    position: relative;
    overflow: hidden;
}

/* Post thumbnail image with consistent 3:2 aspect ratio */
.sa-musiczone-post-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    filter: saturate(0.9) brightness(0.95);
}

.sa-musiczone-post-item:hover .sa-musiczone-post-thumbnail {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(1);
}

/* Subtle green tint overlay on image */
.sa-musiczone-post-thumbnail-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 28, 18, 0.55) 100%);
    pointer-events: none;
}

/* Post title */
.sa-musiczone-post-item h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    margin: 11px 12px 13px;
    color: #1a3d28;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.sa-musiczone-post-item:hover h3 {
    color: #0f2418;
}

/* Post byline — bottom right of widget */
.sa-musiczone-post-byline {
    font-family: 'Raleway', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #5a8a6a;
    margin: 10px 0 0;
    text-align: right;
    letter-spacing: 0.01em;
}
.sa-musiczone-post-byline a {
    color: #1a7a40;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(26, 122, 64, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.sa-musiczone-post-byline a:hover {
    color: #0f5c2e;
    border-bottom-color: #0f5c2e;
}

/* ------------------ Responsive Adjustments ------------------ */
/* Tablet: 2 columns */
@media (max-width: 992px) {
    .sa-musiczone-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sa-musiczone-widget-container h2 {
        font-size: 18px;
        margin: 0 0 16px !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
    .sa-musiczone-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sa-musiczone-widget-container {
        padding: 16px;
        margin: 8px 0;
    }
    .sa-musiczone-post-item h3 {
        font-size: 14px;
    }
    .sa-musiczone-widget-container h2 {
        font-size: 17px;
    }
}
