/*
Theme Name: RawFind
Theme URI: https://rawfind.com
Author: RawFind
Author URI: https://rawfind.com
Description: Discover underground music and videos before they blow up. Find YouTube videos, Spotify tracks, and SoundCloud songs with near-zero plays. Vote hot or cold, track rising content, and be first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rawfind
Tags: music, discovery, youtube, spotify, soundcloud, underground
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg-void: #0a0a0f;
  --bg-deep: #0f0f1a;
  --bg-surface: #141420;
  --bg-raised: #1a1a2e;
  --bg-card: #1e1e30;
  --bg-card-hover: #232338;

  --accent-hot: #ff3d3d;
  --accent-hot-glow: rgba(255, 61, 61, 0.3);
  --accent-cold: #3d9dff;
  --accent-cold-glow: rgba(61, 157, 255, 0.3);
  --accent-gold: #f5c842;
  --accent-gold-glow: rgba(245, 200, 66, 0.25);

  --text-primary: #f0f0ff;
  --text-secondary: #9090b8;
  --text-muted: #555580;
  --text-accent: #c8c8ff;

  --youtube: #ff0000;
  --spotify: #1db954;
  --soundcloud: #ff5500;

  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hot: 0 0 20px rgba(255, 61, 61, 0.15);
  --shadow-cold: 0 0 20px rgba(61, 157, 255, 0.15);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-width: 320px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* =============================================
   NOISE TEXTURE OVERLAY
   ============================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* =============================================
   SITE WRAPPER
   ============================================= */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-hot), #ff7b3d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--accent-hot);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-raised);
  color: var(--text-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 38px;
  width: 240px;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--border-active);
  background: var(--bg-card);
  width: 280px;
}

.header-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-hot);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-submit:hover {
  background: #ff5252;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-hot-glow);
}

/* =============================================
   HERO BANNER
   ============================================= */
.site-hero {
  background: linear-gradient(180deg, rgba(255,61,61,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 36px;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 61, 61, 0.1);
  border: 1px solid rgba(255, 61, 61, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-hot);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-hot);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filter-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.platform-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.platform-btn.active[data-platform="youtube"] {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.4);
  color: var(--youtube);
}

.platform-btn.active[data-platform="spotify"] {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.4);
  color: var(--spotify);
}

.platform-btn.active[data-platform="soundcloud"] {
  background: rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.4);
  color: var(--soundcloud);
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

[data-platform="youtube"] .platform-dot { background: var(--youtube); }
[data-platform="spotify"] .platform-dot { background: var(--spotify); }
[data-platform="soundcloud"] .platform-dot { background: var(--soundcloud); }

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.filter-select {
  appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 28px 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555580' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: var(--transition);
}

.filter-select:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-cold);
}

/* =============================================
   MAIN CONTENT LAYOUT
   ============================================= */
.content-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 24px;
  align-items: start;
}

/* =============================================
   MEDIA GRID
   ============================================= */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.sort-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.sort-tab {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.sort-tab.active {
  background: var(--bg-raised);
  color: var(--text-primary);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* =============================================
   MEDIA CARD
   ============================================= */
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.media-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-raised);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-platform-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.badge-youtube {
  background: rgba(255, 0, 0, 0.85);
  color: white;
}

.badge-spotify {
  background: rgba(29, 185, 84, 0.85);
  color: white;
}

.badge-soundcloud {
  background: rgba(255, 85, 0, 0.85);
  color: white;
}

.card-views-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
}

.media-card:hover .card-play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.media-card:hover .play-btn {
  opacity: 1;
  transform: scale(1);
}

.play-btn svg {
  color: var(--bg-void);
  margin-left: 2px;
}

.card-body {
  padding: 14px 16px 12px;
}

.card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-artist {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.meta-chip svg {
  flex-shrink: 0;
}

.card-vote-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.vote-btn.hot:hover,
.vote-btn.hot.voted {
  background: rgba(255, 61, 61, 0.12);
  border-color: rgba(255, 61, 61, 0.35);
  color: var(--accent-hot);
  box-shadow: var(--shadow-hot);
}

.vote-btn.cold:hover,
.vote-btn.cold.voted {
  background: rgba(61, 157, 255, 0.12);
  border-color: rgba(61, 157, 255, 0.35);
  color: var(--accent-cold);
  box-shadow: var(--shadow-cold);
}

.vote-score {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 24px;
  text-align: center;
}

.vote-score.positive { color: var(--accent-hot); }
.vote-score.negative { color: var(--accent-cold); }

/* Temperature bar */
.temp-bar {
  height: 2px;
  background: var(--bg-raised);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.temp-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--accent-cold), var(--accent-hot));
}

/* =============================================
   AUDIO CARD VARIANT (Spotify/SoundCloud)
   ============================================= */
.media-card.audio .card-thumb {
  aspect-ratio: 1/1;
  max-height: 180px;
}

/* =============================================
   LOAD MORE
   ============================================= */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-load-more:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* =============================================
   SIDEBAR
   ============================================= */
.site-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.widget-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.widget-icon.hot {
  background: rgba(255, 61, 61, 0.15);
}

.widget-icon.cold {
  background: rgba(61, 157, 255, 0.15);
}

.widget-meta {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.widget-list {
  padding: 8px 0;
}

.widget-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  transition: var(--transition);
  cursor: pointer;
}

.widget-item:hover {
  background: var(--bg-raised);
}

.item-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
  flex-shrink: 0;
  text-align: right;
}

.item-rank.top-3 {
  color: var(--accent-gold);
}

.item-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-raised);
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.item-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.item-score.hot {
  color: var(--accent-hot);
}

.item-score.cold {
  color: var(--accent-cold);
}

.trending-arrow {
  font-size: 10px;
}

/* =============================================
   SUBMIT MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-cold);
  background: var(--bg-raised);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.url-preview {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.url-preview.show { display: flex; }

.preview-platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-submit-form {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent-hot), #ff7b3d);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  color: white;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit-form:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-hot-glow);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  grid-column: 1/-1;
  padding: 64px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 24px;
  background: var(--bg-deep);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
}

.footer-logo span { color: var(--accent-hot); }

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* =============================================
   LOADING SKELETON
   ============================================= */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--bg-raised) 25%,
    var(--bg-surface) 50%,
    var(--bg-raised) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.7s forwards;
  min-width: 200px;
}

.toast.hot { border-color: rgba(255, 61, 61, 0.4); }
.toast.cold { border-color: rgba(61, 157, 255, 0.4); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  to { opacity: 0; transform: translateX(20px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  :root { --sidebar-width: 280px; }
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .header-nav { display: none; }

  .site-sidebar {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}
