/******************************************************************************
 *  widgets.css
 *  --------------------------------------------------------
 *  Going Fishing Widget System
 ******************************************************************************/

.gf-sidebar {
    width: 100%;
}

.gf-widget {
    border: 1px solid #dee2e6;
    border-radius: var(--w-radius, 6px);
    overflow: hidden;
    background: #fff;
    font-family: var(--w-font, system-ui, sans-serif);
}

.gf-widget-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--w-head-bg, #1F3864);
    color: var(--w-head-txt, #ffffff);
    font-size: 0.9rem;
    font-weight: 600;
}

.gf-widget-head i {
    font-size: 0.95rem;
    color: var(--w-head-txt, #ffffff);
}

.gf-widget-body {
    padding: 0.85rem;
}

.gf-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gf-widget-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.gf-widget-list li:first-child {
    padding-top: 0;
}

.gf-widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gf-widget-list a {
    text-decoration: none;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.35;
}

.gf-widget-list a:hover {
    color: var(--w-accent, #1D9E75);
}

.gf-widget-meta {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.gf-widget-empty {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.gf-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gf-tag-cloud a {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.78rem;
    text-decoration: none;
}

.gf-tag-cloud a:hover {
    border-color: var(--w-accent, #1D9E75);
    color: var(--w-accent, #1D9E75);
}

.gf-widget-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
}

.gf-widget-stat:last-child {
    border-bottom: none;
}

.gf-widget-stat strong {
    color: var(--w-accent, #1D9E75);
}

/**********************************************
 * Widget Appearance Engine
 **********************************************/

.gf-widget-default {
    --w-head-bg: #1F3864;
    --w-head-txt: #ffffff;
    --w-accent: #1D9E75;
    --w-radius: 6px;
}

.gf-widget-light {
    --w-head-bg: #f8f9fa;
    --w-head-txt: #1F3864;
    --w-accent: #1D9E75;
    --w-radius: 6px;
}

.gf-widget-dark {
    --w-head-bg: #1F3864;
    --w-head-txt: #ffffff;
    --w-accent: #1D9E75;
    --w-radius: 6px;
}

.gf-widget-green {
    --w-head-bg: #1D9E75;
    --w-head-txt: #ffffff;
    --w-accent: #1D9E75;
    --w-radius: 6px;
}

.gf-widget-plain {
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    --w-head-bg: transparent;
    --w-head-txt: #1F3864;
    --w-accent: #1D9E75;
}

@media (prefers-color-scheme: dark) {
    .gf-widget {
        background: #1e1e1e;
        border-color: #333;
    }

    .gf-widget-list li,
    .gf-widget-stat {
        border-color: #333;
    }

    .gf-widget-list a {
        color: #e8e8e8;
    }

    .gf-widget-meta,
    .gf-widget-empty {
        color: #aaa;
    }

    .gf-tag-cloud a {
        background: #2a2a2a;
        border-color: #444;
        color: #ddd;
    }
}