/* ==========================================
   GLOBAL STYLES - Kvíz
   ========================================== */

body {
    background: #f4f6f9;
}

/* ---- Navbar ---- */
.navbar-main {
    background: #0aa5ff;
    box-shadow: 0 4px 12px rgba(0,161,255,0.3);
}
.navbar-main .navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
}
.navbar-main .btn-nav {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-weight: 500;
}

/* ---- Footer ---- */
.footer-main {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* ---- Material Design form controls ---- */
.form-control {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}
.form-control:focus {
    box-shadow: 0 4px 12px rgba(0,161,255,0.15);
    border-color: #00a1ff;
}

/* ---- Buttons ---- */
.btn-primary {
    background: #0aa5ff;
    border: none;
    box-shadow: 0 4px 6px rgba(0,161,255,0.25);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,161,255,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(245,87,108,0.25);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245,87,108,0.4);
}

.btn-outline-primary {
    border: 2px solid #00a1ff;
    color: #00a1ff;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: #00a1ff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,161,255,0.3);
}

.btn-search {
    background: #00ceb6;
    border: none;
    box-shadow: 0 4px 6px rgba(0,206,182,0.25);
}
.btn-search:hover {
    background: #00b8a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,206,182,0.4);
}

/* ---- Gradient badges ---- */
.badge-category {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.bg-info-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.bg-danger-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.bg-warning-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333 !important;
}

/* ---- Page title gradient ---- */
.page-title {
    background: linear-gradient(135deg, #0aa5ff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   HOMEPAGE - Blog cards
   ========================================== */

.blog-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card .card-img-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.blog-card-featured {
    min-height: 420px;
    position: relative;
}
.blog-card-featured .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-card-side {
    min-height: 200px;
    position: relative;
}
.blog-card-side .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-card-small .card-body {
    padding: 1.5rem;
}


/* ==========================================
   ARTICLES
   ========================================== */

/* Day filter badges */
.day-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.day-filter-badge .badge {
    background: #e5f5ff;
    color: #00a1ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}
.day-filter-badge.active .badge {
    background: rgba(255,255,255,0.95);
    color: #00a1ff;
}

/* Article cards */
.article-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Source badges */
.source-badge {
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 12px;
    background: #0aa5ff;
}

/* Active filter badges */
.filter-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}
.sidebar .card {
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}
.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}
.sidebar .list-group-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}
.sidebar .list-group-item.active {
    background: #0aa5ff;
    border: none;
}
.sidebar .badge {
    background: #e5f5ff !important;
    color: #00a1ff;
}
