/* uzicredenza.com — NerdWallet/Bankrate inspired design */
/* Copyright (c) 2026 uzicredenza.com — All Rights Reserved. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:     #1db954;
    --green-dark:#17a349;
    --green-pale:#edfbf2;
    --blue:      #1a56db;
    --blue-pale: #eff6ff;
    --orange:    #f59e0b;
    --red:       #ef4444;
    --bg:        #f8fafc;
    --white:     #ffffff;
    --text:      #0f172a;
    --text2:     #475569;
    --text3:     #94a3b8;
    --border:    #e2e8f0;
    --border2:   #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius:    12px;
    --radius-sm: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
img  { display: block; }
a    { text-decoration: none; color: inherit; }

/* ── TOP BAR ── */
.topbar {
    background: var(--text);
    color: #94a3b8;
    font-size: 0.72rem;
    text-align: center;
    padding: 6px 1rem;
    letter-spacing: 0.3px;
}
.topbar strong { color: var(--green); }

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo span { color: var(--green); }

.nav-pills {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pills li a {
    display: block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text2);
    white-space: nowrap;
    transition: all 0.15s;
}
.nav-pills li a:hover,
.nav-pills li a.active {
    background: var(--green-pale);
    color: var(--green-dark);
}
.header-cta {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--green);
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.15s;
}
.header-cta:hover { background: var(--green-dark); }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d2137 100%);
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,185,84,.15) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29,185,84,.15);
    border: 1px solid rgba(29,185,84,.3);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.hero-label::before { content: '●'; font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

/* ── FEATURED STRIP ── */
.featured-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}
.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.featured-inner::-webkit-scrollbar { display: none; }
.featured-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    white-space: nowrap;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}
.featured-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 14px 6px 8px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.featured-pill:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }
.featured-pill img { width: 22px; height: 22px; border-radius: 4px; background: #e2e8f0; }
.fpill-badge {
    background: var(--orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

/* ── MAIN LAYOUT ── */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    margin-bottom: 0.6rem;
    padding-left: 4px;
}
.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: var(--font);
}
.sidebar-btn:hover { background: var(--bg); color: var(--text); }
.sidebar-btn.active { background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
.sidebar-btn .sb-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-count {
    margin-left: auto;
    background: var(--border);
    color: var(--text3);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
}
.sidebar-btn.active .sidebar-count { background: var(--green); color: white; }

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.82rem;
}
.widget-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.widget-body { color: var(--text2); line-height: 1.5; }
.widget-body strong { color: var(--green-dark); }

/* ── CONTENT AREA ── */
.content-area {}
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.content-title { font-size: 1.1rem; font-weight: 700; }
.content-meta { font-size: 0.8rem; color: var(--text3); }

.sort-bar {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.sort-label { font-size: 0.78rem; color: var(--text3); }
.sort-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text2);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}
.sort-btn.active, .sort-btn:hover {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
}

/* ── CARDS ── */
.cards-list { display: flex; flex-direction: column; gap: 1rem; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green);
    transform: translateY(-1px);
}
.card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, #fafffe 0%, #f0fdf4 100%);
}
.card.featured::before {
    content: 'TOP PICK';
    position: absolute;
    top: 0; left: 0;
    background: var(--green);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-bottom-right-radius: 8px;
}

.card-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: contain;
    padding: 8px;
    background: white;
    flex-shrink: 0;
}
.card-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #667eea22, #764ba222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    font-weight: 800;
    color: var(--green-dark);
}

.card-info { min-width: 0; }
.card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.platform-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
}
.pb-udemy      { background:#a435f015; color:#a435f0; border:1px solid #a435f030; }
.pb-coursera   { background:#0056d215; color:#0056d2; border:1px solid #0056d230; }
.pb-skillshare { background:#00b47215; color:#00b472; border:1px solid #00b47230; }
.pb-credit     { background:#f59e0b15; color:#d97706; border:1px solid #f59e0b30; }
.pb-bank       { background:#1a56db15; color:#1a56db; border:1px solid #1a56db30; }

.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; line-height: 1.3; }
.card-sub   { font-size: 0.82rem; color: var(--text2); line-height: 1.4; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.rating-wrap { display: flex; align-items: center; gap: 4px; }
.stars { color: var(--orange); font-size: 0.85rem; letter-spacing: -1px; }
.rating-num { font-size: 0.82rem; font-weight: 700; }
.review-count { font-size: 0.75rem; color: var(--text3); }
.tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.tag-discount { background: #fef3c7; color: #92400e; }
.tag-free     { background: #dcfce7; color: #166534; }
.tag-hot      { background: #fee2e2; color: #991b1b; }
.tag-new      { background: #dbeafe; color: #1e40af; }

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 130px;
}
.price-block { text-align: right; }
.price-main { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-orig { font-size: 0.8rem; color: var(--text3); text-decoration: line-through; }
.price-saving { font-size: 0.75rem; color: var(--green-dark); font-weight: 600; }
.price-free { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); }

.cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--green);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: var(--font);
    white-space: nowrap;
}
.cta-btn:hover { background: var(--green-dark); transform: scale(1.02); }
.cta-secondary {
    font-size: 0.75rem;
    color: var(--text3);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ── SCORE BADGE ── */
.score-ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid;
}
.score-high   { border-color: var(--green);  color: var(--green-dark); background: var(--green-pale); }
.score-medium { border-color: var(--orange); color: #92400e;           background: #fef9ee; }

/* ── SKELETON ── */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

/* ── PAGINATION / LOAD MORE ── */
.load-more-wrap { text-align: center; margin-top: 2rem; }
.load-more-btn {
    background: var(--white);
    border: 1px solid var(--border2);
    color: var(--text2);
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s;
}
.load-more-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }

/* ── FOOTER ── */
footer {
    background: var(--text);
    color: #94a3b8;
    padding: 3rem 1.5rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}
.footer-brand .logo { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.8rem; line-height: 1.6; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.fl-col h4 { color: white; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; }
.fl-col a  { display: block; font-size: 0.78rem; color: #64748b; margin-bottom: 0.3rem; transition: color 0.15s; }
.fl-col a:hover { color: var(--green); }
.footer-bottom {
    font-size: 0.73rem;
    color: #475569;
    line-height: 1.7;
}
.disclaimer-box {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.73rem;
    line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .main-wrap { grid-template-columns: 1fr; }
    .sidebar   { position: static; display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .sidebar-section { margin: 0; }
    .sidebar-btn { padding: 6px 12px; white-space: nowrap; }
    .sidebar-title { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-links { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .hero { padding: 2.5rem 1rem 3rem; }
    .card { grid-template-columns: 56px 1fr; }
    .card-right { display: none; }
    .card-meta  { gap: 0.5rem; }
    .header-inner { padding: 0 1rem; }
    .nav-pills { display: none; }
    .hero-stats { gap: 1.5rem; }
}
