/* style.css — Custom styles that Tailwind CDN can't handle inline */

/* ── Flash bar colors ───────────────────────────────────────────────────── */
.flash-bar { animation: slideDown .2s ease; }
.flash-success { background:rgba(79,255,176, 1); color:#000; border-bottom:1px solid rgba(79,255,176,.2); }
.flash-error   { background:rgba(255,60,110, 1); color:#000; border-bottom:1px solid rgba(255,60,110,.2); }
.flash-info    { background:rgba(212,245,60, 1); color:#000; border-bottom:1px solid rgba(212,245,60,.15); }
@keyframes slideDown { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }

/* ── Embeds ─────────────────────────────────────────────────────────────── */
.embed-video { position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:0; border:4px solid #000; box-shadow:4px 4px 0px 0px #000; overflow:hidden; }
.embed-video iframe,
.embed-video video { position:absolute; inset:0; width:100%; height:100%; border:none; }
.embed-video video { position:relative; display:block; }

.embed-audio { width:100%; }
.embed-audio iframe { border-radius:0; border:4px solid #000; box-shadow:4px 4px 0px 0px #000; display:block; }
.embed-audio audio  { width:100%; }

.embed-image { width:100%; }
.embed-image img { width:100%; max-height:300px; object-fit:cover; border-radius:0; border:4px solid #000; box-shadow:4px 4px 0px 0px #000; background:#fff; display:block; }
.embed-image a { display:block; }

.embed-text {
    background:#fff; border:4px solid #000; box-shadow:4px 4px 0px 0px #000;
    border-radius:0; padding:14px;
}
.text-content {
    font-family:'DM Mono',monospace; font-size:.83rem; line-height:1.75;
    color:#000; max-height:220px; overflow-y:auto;
}

.embed-link-box { width:100%; }
.link-row {
    display:flex; align-items:center; gap:10px;
    padding:12px 14px;
    background:#fff; border:4px solid #000; border-radius:0; box-shadow:4px 4px 0px 0px #000;
    color:#000; font-size:.88rem; font-weight:600;
    text-decoration:none; transition:transform .15s, box-shadow .15s;
}
.link-row:hover { transform:translate(-2px, -2px); box-shadow:8px 8px 0px 0px #000; color:#000; text-decoration:none; }
.link-host { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.link-arrow { margin-left:auto; flex-shrink:0; }
.favicon-img { width:18px; height:18px; border-radius:0; flex-shrink:0; }

/* ── YouTube click-to-play facade ───────────────────────────────────────────── */
.yt-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0 0 #000;
    overflow: hidden;
    cursor: pointer;
}
.yt-facade .yt-thumb {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter .2s;
    display: block;
}
.yt-facade:hover .yt-thumb { filter: brightness(.75); }
.yt-facade .yt-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0 #000);
    transition: transform .15s;
}
.yt-facade:hover .yt-play-btn { transform: scale(1.1); }
.yt-facade .yt-yt-link {
    position: absolute; bottom: 8px; right: 10px;
    font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 700;
    color: #fff;
    text-decoration: none;
    z-index: 2;
    padding: 3px 6px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 0;
    transition: color .15s, background .15s;
}
.yt-facade .yt-yt-link:hover { color: #000; background: #fff; border-color:#000; }
/* Active state: facade replaced by real iframe */
.yt-facade.yt-playing { cursor: default; box-shadow: none; border:none; }
.yt-facade.yt-playing .yt-thumb,
.yt-facade.yt-playing .yt-play-btn,
.yt-facade.yt-playing .yt-yt-link { display: none; }
.yt-facade.yt-playing iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Instagram embed ─────────────────────────────────────────────────────────── */
.embed-instagram {
    width: 100%;
    max-height: 580px;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
}
.embed-instagram iframe {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    border-radius: 0;
}

/* ── Vote button pop ────────────────────────────────────────────────────── */
@keyframes votepop { 0%{transform:scale(1)} 40%{transform:scale(1.2)} 100%{transform:scale(1)} }
.vote-pop { animation:votepop .22s ease; }

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background:#f0f0f0; border-left:2px solid #000; }
::-webkit-scrollbar-thumb { background:#fff; border:2px solid #000; }
::-webkit-scrollbar-thumb:hover { background:#000; }

/* ── Textarea resize ────────────────────────────────────────────────────── */
textarea { resize:vertical; }

/* ── Category Colors ────────────────────────────────────────────────────── */
[data-cat="image"]   { --cat-color: #10b981; --cat-bg: rgba(16, 185, 129, 1); }
[data-cat="video"]   { --cat-color: #f43f5e; --cat-bg: rgba(244, 63, 94, 1); }
[data-cat="audio"]   { --cat-color: #8b5cf6; --cat-bg: rgba(139, 92, 246, 1); }
[data-cat="text"]    { --cat-color: #f59e0b; --cat-bg: rgba(245, 158, 11, 1); }
[data-cat="website"] { --cat-color: #0ea5e9; --cat-bg: rgba(14, 165, 233, 1); }

.cat-card.voted { border-color: #000 !important; border-width: 4px; box-shadow: 4px 4px 0 0 #000; }

.cat-card .vote-btn.voted-btn {
    border: 2px solid #000 !important;
    color: #000 !important;
    background-color: var(--cat-color) !important;
    box-shadow: 2px 2px 0 0 #000;
}
.cat-card .vote-btn:hover:not(.voted-btn) {
    border: 2px solid #000 !important;
    color: #000 !important;
    background-color: var(--cat-color) !important;
    box-shadow: 2px 2px 0 0 #000;
}
.cat-card:hover:not(.voted) {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 #000;
}
.cat-card:hover:not(.voted) .cat-bar {
    opacity: 1;
}
.cat-card .cat-bar.opacity-100 {
    background-color: var(--cat-color) !important;
    border-bottom: 3px solid #000;
}
.cat-card .cat-bar {
    background-color: var(--cat-color) !important;
    border-bottom: 2px solid #000;
}

/* ── UI Category Extension ──────────────────────────────────────────────── */
.cat-filter[data-cat]:hover:not(.active) { background-color: var(--cat-color) !important; border: 2px solid #000 !important; color: #000 !important; box-shadow: 2px 2px 0 0 #000 !important; }
.cat-filter[data-cat].active { background-color: var(--cat-color) !important; border: 2px solid #000 !important; color: #000 !important; box-shadow: 4px 4px 0 0 #000 !important; }

.cat-header[data-cat] { border-bottom-color: #000 !important; border-bottom-width: 4px !important; }
.cat-header[data-cat] h2 { color: #000 !important; background-color: var(--cat-color); padding: 4px 8px; border: 2px solid #000; box-shadow: 3px 3px 0 0 #000; }
.cat-header[data-cat] span.text-2xl { filter: drop-shadow(2px 2px 0 #000); }
