/* =====================================================
   Dyhntastic Changelog Plugin — Frontend Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Syne:wght@400;600;700;800&display=swap');

/* ── Overview Page ─────────────────────────────────── */

.dcl-overview {
    font-family: 'Syne', sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.dcl-overview-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f0f6ff;
    margin: 0 0 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

.dcl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.dcl-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
    color: inherit;
}

.dcl-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    text-decoration: none;
}

.dcl-card--featured {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #0f172a 0%, #1a1200 100%);
}

.dcl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dcl-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dcl-version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    background: #0a1628;
    color: #60a5fa;
    border: 1px solid #1e3a6e;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.dcl-star {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
}

.dcl-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #475569;
}

.dcl-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.3;
}

.dcl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dcl-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    letter-spacing: 0.04em;
}

.dcl-read {
    font-size: 12px;
    color: #3b82f6;
    margin-top: auto;
    font-weight: 600;
}

.dcl-empty {
    color: #475569;
    font-style: italic;
    text-align: center;
    padding: 3rem;
}

/* ── Pagination ─────────────────────────────────────── */

.dcl-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.dcl-pagination .page-numbers {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 7px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s;
}

.dcl-pagination .page-numbers:hover,
.dcl-pagination .page-numbers.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    text-decoration: none;
}

/* ── Single Changelog ───────────────────────────────── */

.dcl-single-header {
    font-family: 'Syne', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.25rem 1.5rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.dcl-single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dcl-single-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #475569;
}

.dcl-back {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.dcl-back:hover { text-decoration: underline; }

/* ── Widget ─────────────────────────────────────────── */

.dcl-widget { font-family: 'Syne', sans-serif; }

.dcl-widget-list { display: flex; flex-direction: column; gap: 6px; }

.dcl-widget-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 9px;
    text-decoration: none;
    transition: border-color 0.15s;
    color: inherit;
}
.dcl-widget-item:hover { border-color: #3b82f6; text-decoration: none; }

.dcl-wi-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dcl-wi-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dcl-wi-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #475569;
    flex-shrink: 0;
}
.dcl-wi-ver {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    background: #0a1628;
    color: #60a5fa;
    border: 1px solid #1e3a6e;
    padding: 1px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

.dcl-widget-paging {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}
.dcl-wp-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}
.dcl-wp-btn:hover:not(:disabled) { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.dcl-wp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dcl-wp-info { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #475569; }

.dcl-widget-all {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}
.dcl-widget-all:hover { text-decoration: underline; }
