/* Mcaster1AMP — Main Stylesheet
   Base design system from mediacast.one (Mcaster1 blue/green), extended with
   a Winamp-style dark hero, plugin/forum galleries, dashboard and admin. */

:root {
    --mcaster-blue: #0ea5e9;
    --mcaster-cyan: #06b6d4;
    --dnas-green: #22c55e;
    --dnas-accent: #16a34a;
    --professional-blue: #3b82f6;
    --navy-blue: #1e40af;
    --mc1-navy: #0d2342;
    --mc1-gold: #ffc42e;
    --mc1-mint: #1de9b6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-soft: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-brand: linear-gradient(135deg, var(--mcaster-blue), var(--dnas-green));
    --gradient-hero: linear-gradient(135deg, #0b1220 0%, #0d2342 55%, #08305a 100%);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, Menlo, 'Ubuntu Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); line-height: 1.6; color: var(--text-primary); background: var(--bg-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--mcaster-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--dnas-green); }

/* ---- Loading bar ---- */
.loading-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient-brand); transform: translateX(-100%); transition: transform var(--transition-normal); z-index: 9999; }
.loading-bar.active { transform: translateX(0); }

/* ---- Navbar ---- */
.navbar { background: var(--bg-white); border-bottom: 2px solid var(--mcaster-blue); box-shadow: var(--shadow-medium); position: sticky; top: 0; z-index: 1000; transition: all var(--transition-normal); }
.navbar.scrolled { box-shadow: var(--shadow-large); backdrop-filter: blur(10px); }
.navbar-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.navbar-brand { font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.navbar-brand:hover { color: inherit; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mcaster { color: var(--mcaster-blue); font-size: 1.35rem; font-weight: 800; }
.brand-sub { color: var(--text-secondary); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

.navbar-menu { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin-left: auto; }
.navbar-item { position: relative; }
.navbar-link { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.7rem; color: var(--text-primary); font-weight: 500; font-size: 0.88rem; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.navbar-link:hover, .navbar-link.active { color: var(--mcaster-blue); background: linear-gradient(135deg, var(--bg-light), var(--bg-accent)); }
.navbar-link.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 18px; height: 2px; background: var(--dnas-green); border-radius: 1px; }

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.logout-link { color: var(--text-secondary); padding: 0.5rem; }
.logout-link:hover { color: #dc2626; background: var(--bg-light); }

/* Hamburger */
.navbar-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: var(--radius-md); }
.hamburger-line { width: 24px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all var(--transition-normal); }
.navbar-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Dropdown */
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 6px 0; box-shadow: var(--shadow-large); z-index: 1000; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--text-primary); font-size: 0.86rem; }
.nav-dropdown-menu a:hover { background: var(--bg-light); color: var(--mcaster-blue); }
.nav-dropdown-menu a i { width: 18px; text-align: center; }
.nav-dropdown .fa-chevron-down { font-size: 0.6rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.4rem; font-weight: 600; font-size: 0.92rem; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.btn-primary { background: var(--gradient-brand); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-outline { background: transparent; color: var(--mcaster-blue); border: 2px solid var(--mcaster-blue); }
.btn-outline:hover { background: var(--mcaster-blue); color: #fff; }
.btn-ghost { background: var(--bg-light); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--mcaster-blue); color: var(--mcaster-blue); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-light); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 0.6rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 680px; margin-bottom: 2.5rem; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Winamp-style dark hero ---- */
.amp-hero { background: var(--gradient-hero); color: #fff; padding: 5rem 1.5rem 4rem; position: relative; overflow: hidden; }
.amp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 30%, rgba(14,165,233,0.25) 0%, transparent 55%), radial-gradient(circle at 80% 60%, rgba(34,197,94,0.18) 0%, transparent 55%); pointer-events: none; }
.amp-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.amp-hero-copy h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.amp-hero-copy .lead { font-size: 1.15rem; opacity: 0.9; margin-bottom: 1.5rem; max-width: 560px; }
.amp-hero .version-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.35rem 0.9rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem; }
.amp-hero .hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.5rem; }
.amp-hero .hero-meta { margin-top: 1.25rem; font-size: 0.82rem; opacity: 0.7; display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Player mock */
.player-mock { background: linear-gradient(160deg, #10243f, #0a1729); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); padding: 1.25rem; }
.player-mock .pm-screen { background: #06101f; border: 1px solid rgba(34,197,94,0.25); border-radius: var(--radius-md); padding: 0.85rem 1rem; font-family: var(--font-mono); color: var(--mc1-mint); font-size: 0.82rem; display: flex; justify-content: space-between; }
.player-mock .pm-eq { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin: 0.9rem 0; }
.player-mock .pm-eq span { flex: 1; background: linear-gradient(180deg, var(--dnas-green), var(--mcaster-blue)); border-radius: 2px; animation: pmbar 1.1s ease-in-out infinite; }
@keyframes pmbar { 0%,100% { height: 25%; } 50% { height: 95%; } }
.player-mock .pm-controls { display: flex; gap: 0.5rem; justify-content: center; color: #cbd5e1; }
.player-mock .pm-controls i { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border-radius: 50%; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 1.75rem; transition: all var(--transition-normal); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--mcaster-blue); }
.card-icon { width: 52px; height: 52px; background: var(--gradient-brand); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.35rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { color: var(--text-secondary); line-height: 1.7; }

/* ---- Stats ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.stat-item { text-align: center; padding: 1.4rem; background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.stat-number { font-size: 2.2rem; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.25rem; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0.22rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-blue { background: rgba(14,165,233,0.1); color: var(--mcaster-blue); }
.badge-green { background: rgba(34,197,94,0.12); color: var(--dnas-accent); }
.badge-gold { background: rgba(255,196,46,0.15); color: #b8860b; }
.badge-ai { background: rgba(124,58,237,0.12); color: #7c3aed; }
.badge-gray { background: var(--bg-accent); color: var(--text-secondary); }
.badge-windows { background: rgba(0,120,215,0.1); color: #0078d7; }
.badge-macos { background: rgba(0,0,0,0.06); color: #333; }
.badge-pending { background: rgba(234,179,8,0.15); color: #a16207; }
.badge-approved { background: rgba(34,197,94,0.12); color: var(--dnas-accent); }

/* ---- Download cards ---- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.dl-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 2rem; text-align: center; transition: all var(--transition-normal); }
.dl-card:hover { box-shadow: var(--shadow-large); border-color: var(--mcaster-blue); }
.dl-card .dl-os { font-size: 2.4rem; margin-bottom: 0.75rem; }
.dl-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.dl-card .dl-meta { color: var(--text-light); font-size: 0.82rem; margin-bottom: 1.25rem; }

/* ---- Filter chips ---- */
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { padding: 0.4rem 0.9rem; border-radius: 9999px; border: 1px solid var(--border-medium); background: #fff; color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.chip:hover { border-color: var(--mcaster-blue); color: var(--mcaster-blue); }
.chip.active { background: var(--gradient-brand); border-color: transparent; color: #fff; }

/* ---- Plugin grid ---- */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.plugin-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; transition: all var(--transition-normal); }
.plugin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-large); border-color: var(--mcaster-blue); }
.plugin-card .pc-icon { width: 46px; height: 46px; border-radius: var(--radius-md); background: rgba(14,165,233,0.1); color: var(--mcaster-blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.plugin-card h3 { font-size: 1.05rem; }
.plugin-card .pc-summary { color: var(--text-secondary); font-size: 0.86rem; flex: 1; }
.plugin-card .pc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-light); }

/* ---- Forum ---- */
.forum-section { margin-bottom: 2.5rem; }
.forum-section h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 0.85rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-light); }
.forum-list { display: flex; flex-direction: column; gap: 0.6rem; }
.forum-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); transition: all var(--transition-fast); }
.forum-row:hover { border-color: var(--mcaster-blue); box-shadow: var(--shadow-soft); }
.forum-row .fr-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; background: var(--gradient-brand); flex-shrink: 0; }
.forum-row .fr-body { flex: 1; }
.forum-row .fr-body h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.forum-row .fr-body p { color: var(--text-secondary); font-size: 0.85rem; }
.forum-row .fr-stats { text-align: right; color: var(--text-light); font-size: 0.8rem; min-width: 90px; }

.topic-list { display: flex; flex-direction: column; gap: 0.5rem; }
.topic-row { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.topic-row:hover { border-color: var(--mcaster-blue); }
.topic-row .tr-title { font-weight: 600; }
.topic-row .tr-meta { color: var(--text-light); font-size: 0.8rem; }
.topic-row .tr-stats { margin-left: auto; text-align: right; color: var(--text-light); font-size: 0.8rem; min-width: 80px; }
.topic-row .pin { color: var(--mc1-gold); }
.topic-row .lock { color: var(--text-light); }

.post-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); margin-bottom: 1rem; display: grid; grid-template-columns: 180px 1fr; overflow: hidden; }
.post-card .pc-author { background: var(--bg-light); padding: 1.25rem; text-align: center; border-right: 1px solid var(--border-light); }
.post-card .pc-author .av { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.post-card .pc-author .name { font-weight: 700; }
.post-card .pc-author .role { font-size: 0.72rem; }
.post-card .pc-author .meta { color: var(--text-light); font-size: 0.72rem; margin-top: 0.35rem; }
.post-card .pc-content { padding: 1.25rem; }
.post-card .pc-content .pc-date { color: var(--text-light); font-size: 0.78rem; margin-bottom: 0.6rem; }
.post-card .pc-content .pc-body { line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }
.mod-flag { background: rgba(234,179,8,0.12); color: #a16207; padding: 0.5rem 0.85rem; border-radius: var(--radius-md); font-size: 0.82rem; margin-bottom: 1rem; }

/* ---- Forms / auth ---- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border-medium); border-radius: var(--radius-md); font-size: 0.92rem; font-family: inherit; transition: border-color var(--transition-fast); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--mcaster-blue); box-shadow: 0 0 0 3px rgb(14 165 233 / 0.1); }
.form-field textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-card { max-width: 420px; margin: 3.5rem auto; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-large); padding: 2.25rem; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.35rem; text-align: center; }
.auth-card .auth-sub { color: var(--text-secondary); text-align: center; margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--text-secondary); }

/* ---- Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

/* ---- Admin ---- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar { background: var(--mc1-navy); color: #cbd5e1; padding: 1.5rem 0; }
.admin-sidebar h2 { color: #fff; font-size: 0.95rem; padding: 0 1.5rem 1rem; }
.admin-sidebar a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.5rem; color: #cbd5e1; font-size: 0.9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.06); color: #fff; border-left: 3px solid var(--dnas-green); }
.admin-main { padding: 2rem; background: var(--bg-light); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.admin-table th { background: var(--bg-accent); font-weight: 700; }
.admin-table tr:hover td { background: var(--bg-light); }

/* ---- Code blocks / docs ---- */
.code-block { background: #0b1220; color: #e2e8f0; border-radius: var(--radius-md); padding: 1.1rem 1.25rem; font-family: var(--font-mono); font-size: 0.84rem; overflow-x: auto; line-height: 1.6; }
.code-block .cmt { color: #64748b; }
.code-block .kw { color: var(--mc1-mint); }
.doc-toc { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.doc-toc a { display: block; padding: 0.25rem 0; font-size: 0.9rem; }
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1rem; color: var(--text-primary); }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---- Feature list ---- */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.feature-list li i { color: var(--dnas-green); margin-top: 3px; flex-shrink: 0; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.45rem 0.8rem; border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 0.85rem; color: var(--text-secondary); }
.pagination a:hover { border-color: var(--mcaster-blue); color: var(--mcaster-blue); }
.pagination .current { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* ---- Alerts ---- */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; font-size: 0.9rem; border-left: 4px solid var(--mcaster-blue); background: var(--bg-light); }
.alert-error { border-left-color: #dc2626; background: rgba(220,38,38,0.05); }
.alert-success { border-left-color: var(--dnas-green); background: rgba(34,197,94,0.05); }
.alert-warn { border-left-color: var(--mc1-gold); background: rgba(255,196,46,0.08); }

/* ---- Footer (from mediacast.one) ---- */
.footer { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-accent) 100%); margin-top: 4rem; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); }
.footer-main { padding: 3rem 0 2rem; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.footer-brand { max-width: 340px; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-logo .brand-icon { width: 36px; height: 36px; background: var(--gradient-brand); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-logo .brand-mcaster { color: var(--mcaster-blue); font-size: 1.3rem; font-weight: 800; }
.footer-logo .brand-sub { color: var(--text-secondary); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.88rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-link { width: 38px; height: 38px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); box-shadow: var(--shadow-soft); }
.social-link:hover { background: var(--gradient-brand); color: #fff; transform: translateY(-2px); }
.footer-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-title i { color: var(--mcaster-blue); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.86rem; padding: 0.15rem 0; }
.footer-links a:hover { color: var(--mcaster-blue); padding-left: 0.4rem; }
.footer-bottom { background: var(--text-primary); color: #fff; padding: 1.1rem 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.copyright { color: #d1d5db; font-size: 0.82rem; }
.legal-links { display: flex; gap: 1.25rem; }
.legal-links a { color: #d1d5db; font-size: 0.82rem; }
.legal-links a:hover { color: var(--mcaster-cyan); }
.footer-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.74rem; color: #9ca3af; }
.version-info { font-weight: 600; color: var(--dnas-green); }

/* ---- Utility ---- */
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--text-secondary); }
.center { text-align: center; }

/* ---- Notification ---- */
.notification { position: fixed; top: 20px; right: 20px; z-index: 10000; max-width: 380px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-large); border-left: 4px solid var(--mcaster-blue); animation: slideInRight 0.3s ease; }
.notification-success { border-left-color: var(--dnas-green); }
.notification-error { border-left-color: #dc2626; }
.notification-content { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.notification-close { background: none; border: none; color: var(--text-light); cursor: pointer; margin-left: auto; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .amp-hero .container { grid-template-columns: 1fr; }
    .player-mock { max-width: 480px; }
}
@media (max-width: 860px) {
    .navbar-toggle { display: flex; }
    .navbar-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border-light); box-shadow: var(--shadow-large); flex-direction: column; gap: 0; max-height: 0; overflow: hidden; overflow-y: auto; transition: max-height 0.3s ease; margin-left: 0; }
    .navbar-menu.active { max-height: 80vh; }
    .navbar-link { width: 100%; padding: 0.85rem 1.5rem; border-radius: 0; border-bottom: 1px solid var(--border-light); }
    .nav-dropdown-menu { position: static; display: none; box-shadow: none; border: none; padding: 0; background: var(--bg-accent); }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open:hover .nav-dropdown-menu { display: block; }
    .navbar-actions { margin-left: auto; }
    .hide-sm { display: none; }
    .admin-shell { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .post-card .pc-author { display: flex; align-items: center; gap: 0.75rem; text-align: left; border-right: none; border-bottom: 1px solid var(--border-light); }
    .post-card .pc-author .av { margin-bottom: 0; width: 44px; height: 44px; font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .card-grid, .plugin-grid, .dl-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}
