/* HappyHour Aggregator v3 – Frontend Styles */

/* ── Wrapper ─────────────────────────────────────────────────────────── */

.hha-content {
    font-family: inherit;
    line-height: 1.7;
    color: #1e293b;
}

.hha-intro {
    font-size: 1.1em;
    color: #475569;
    margin-bottom: 1.5em;
    padding: 14px 18px;
    background: #f8fafc;
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
}

/* ── Table of contents ───────────────────────────────────────────────── */

.hha-toc {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 2em;
    display: inline-block;
    min-width: 220px;
}

.hha-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hha-toc li {
    margin: 6px 0;
}

.hha-toc a {
    color: #c2410c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.hha-toc a:hover {
    text-decoration: underline;
    color: #f97316;
}

/* ── Sections ────────────────────────────────────────────────────────── */

.hha-section {
    margin-bottom: 3em;
    scroll-margin-top: 80px;
}

.hha-section h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 3px solid #f97316;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ── Item cards ──────────────────────────────────────────────────────── */

.hha-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hha-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-1px);
}

.hha-item h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: #ea580c;
    margin-top: 0;
    margin-bottom: 10px;
}

.hha-item p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #334155;
}

.hha-item .hha-why {
    background: #fff7ed;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 0.92em;
    color: #78350f;
    border-left: 3px solid #f97316;
}

/* ── Tables ──────────────────────────────────────────────────────────── */

.hha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.hha-table thead {
    background: #f97316;
    color: #ffffff;
}

.hha-table th {
    padding: 10px 14px;
    font-weight: 600;
    text-align: left;
}

.hha-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.hha-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.hha-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Internal links ──────────────────────────────────────────────────── */

.hha-internal-link {
    color: #ea580c;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #fbd38d;
}

.hha-internal-link:hover {
    color: #c2410c;
    text-decoration-style: solid;
}

/* ── Metadata block ──────────────────────────────────────────────────── */

.hha-meta {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 2em;
    font-size: 0.85em;
    color: #64748b;
}

.hha-meta p {
    margin: 4px 0;
}

/* ── Post footer ─────────────────────────────────────────────────────── */

.hha-post-footer {
    border-top: 2px solid #f1f5f9;
    margin-top: 2em;
    padding-top: 1.2em;
}

.hha-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82em;
    color: #94a3b8;
    margin-bottom: 14px;
}

.hha-post-meta span {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.hha-subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hha-rss-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f97316;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.2s;
}

.hha-rss-btn:hover {
    background: #ea580c;
}

.hha-sitemap-link {
    color: #64748b;
    font-size: 0.85em;
    text-decoration: none;
}

.hha-sitemap-link:hover {
    color: #f97316;
    text-decoration: underline;
}

/* ── Last-updated bar ────────────────────────────────────────────────── */

.hha-last-updated {
    font-size: 0.82em;
    color: #94a3b8;
    margin-bottom: 0.5em;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .hha-post-meta { flex-direction: column; gap: 6px; }
    .hha-subscribe { flex-direction: column; }
    .hha-item { padding: 14px; }
    .hha-table { font-size: 0.8em; }
    .hha-table th, .hha-table td { padding: 7px 8px; }
}
