/* =====================================================
   IBISWorld Data Navigator - Releases Specific Styles
   ===================================================== */

/* Releases Layout */
.releases-container {
    max-width: 900px;
    margin: 0 auto;
}

.releases-intro {
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.releases-intro h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.releases-intro p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Timeline */
.timeline {
    position: relative;
}

/* Quarter Group */
.quarter-group {
    margin-bottom: 30px;
}

.quarter-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 6px;
    display: inline-block;
}

/* Release Card */
.release-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.release-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--secondary-color);
    border-radius: 8px 0 0 8px;
}

.release-card.status-complete::before {
    background: var(--accent-green);
}

.release-card.status-in-progress::before {
    background: var(--accent-orange);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.release-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.release-date {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    padding: 4px 10px;
    background: var(--background-color);
    border-radius: 4px;
}

.release-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.release-description ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.release-description li {
    margin-bottom: 4px;
}

.release-description li:last-child {
    margin-bottom: 0;
}

/* Meta Sections */
.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 4px;
}

.release-meta-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.release-meta-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.release-meta-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.release-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.release-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: #e8f4fd;
    color: var(--secondary-color);
    font-weight: 500;
}

.release-tag.region {
    background: #f0fdf4;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    line-height: 1;
}

.release-tag.region .fi {
    font-size: 1rem;
}

.release-tag.data-type {
    background: #fff7ed;
    color: var(--accent-orange);
}

.release-tag.metric {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Availability badges */
.release-avail {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.release-avail .avail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.release-avail .avail-badge.available {
    background: var(--accent-green);
    color: white;
}

.release-avail .avail-badge.unavailable {
    background: #f0f0f0;
    color: #ccc;
}

.release-avail .avail-badge.coming-soon {
    background: #fef3c7;
    color: #b45309;
}

/* Releases Status Badge Overrides */
.status-badge.upcoming {
    background: #e8f4fd;
    color: var(--secondary-color);
}

.status-badge.in-progress {
    background: #fff7ed;
    color: var(--accent-orange);
}

.status-badge.complete {
    background: #f0fdf4;
    color: var(--accent-green);
}

/* Release Header Actions (badge + date group) */
.release-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .releases-container {
        max-width: 100%;
    }

    .release-header {
        flex-direction: column;
    }

    .release-card {
        padding: 14px 16px;
    }

    .release-card::before {
        width: 5px;
        border-radius: 5px 0 0 5px;
    }

    .release-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .releases-intro {
        padding: 14px;
        margin-bottom: 14px;
    }

    .releases-intro h2 {
        font-size: 1rem;
    }

    .releases-intro p {
        font-size: 0.8rem;
    }

    .quarter-group {
        margin-bottom: 20px;
    }

    .quarter-header {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .release-card {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .release-title {
        font-size: 0.9rem;
    }

    .release-header-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .release-date {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .release-description {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .release-meta {
        gap: 12px;
    }

    .release-meta-content {
        gap: 4px;
    }

    .release-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}
