/* ============================================================
   Blank Cassette Collector — Stylesheet
   Design: Clean editorial · DM Serif Display + DM Sans
   Accent: Warm Amber #D97706
   ============================================================ */

/* ─── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent:       #D97706;
    --accent-light: #FEF3C7;
    --accent-dark:  #B45309;
    --text:         #1C1917;
    --text-muted:   #78716C;
    --text-light:   #A8A29E;
    --bg:           #FAFAF9;
    --bg-alt:       #F5F5F4;
    --border:       #E7E5E4;
    --border-dark:  #D6D3D1;
    --white:        #FFFFFF;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:    0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    16px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --transition:   0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { min-height: calc(100vh - 140px); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 66px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon { color: var(--accent); }
.logo-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--text);
    display: block;
}
.logo-sub {
    font-size: 0.65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-admin { color: var(--accent) !important; }
.nav-logout { color: #DC2626 !important; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-danger {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-wishlist, .btn-collection {
    padding: 6px 12px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
}
.btn-wishlist:hover   { border-color: var(--accent); color: var(--accent); }
.btn-wishlist.active  { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.btn-collection:hover { border-color: #16A34A; color: #16A34A; }
.btn-collection.active { background: #F0FDF4; border-color: #16A34A; color: #15803D; }

/* ─── Flash messages ─────────────────────────────────────── */
.flash-bar {
    padding: 12px 0;
    font-size: 0.875rem;
    font-weight: 500;
}
.flash-success { background: #F0FDF4; color: #15803D; border-bottom: 1px solid #BBF7D0; }
.flash-error   { background: #FEF2F2; color: #DC2626; border-bottom: 1px solid #FECACA; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.8125rem; color: var(--text-light); margin-top: 5px; }
.form-error { font-size: 0.8125rem; color: #DC2626; margin-top: 5px; }

/* ─── Page hero / headings ───────────────────────────────── */
.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
}
.page-hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 20px;
}

/* ─── Tape Cards ─────────────────────────────────────────── */
.tape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 18px;
    padding: 32px 0;
}

.tape-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.tape-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tape-card-visual {
    height: 260px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Fixed-size image — contain so nothing gets cropped, max-height prevents overflow */
.tape-img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    object-position: center center;
    padding: 14px;
    display: block;
}

/* SVG fallback container — same fixed height */
.tape-img-fallback {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tape-svg { width: 140px; height: 80px; }

.tape-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.badge-owned    { background: #D1FAE5; color: #065F46; }
.badge-wishlist { background: #FEF3C7; color: #92400E; }
.badge-for-sale { background: #F59E0B; color: white; font-weight: 600; }

.tape-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; position: relative; }

.tape-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.brand-name { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

.tape-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}
.tape-year {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.tape-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.tag-rare     { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.tag-uncommon { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.tag-common   { background: #F0FDF4; color: #16A34A; border-color: #BBF7D0; }

.tape-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex-grow: 1;
}

.tape-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.tape-card-actions a { flex: 1; }

/* ─── Tape Detail ─────────────────────────────────────────── */
.tape-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 40px 0;
}
.tape-detail-visual {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
.tape-detail-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    display: block;
}
.tape-detail-svg-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px;
}
.tape-detail-info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
}
.detail-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.detail-table th, .detail-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-table th { width: 140px; color: var(--text-muted); font-weight: 500; text-align: left; }
.detail-table td { color: var(--text); font-weight: 500; }

/* ─── Filters ─────────────────────────────────────────────── */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.filter-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; }
.filter-select {
    padding: 7px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    outline: none;
}
.filter-select:focus { border-color: var(--accent); }
.filter-search {
    flex: 1;
    min-width: 200px;
}
.filter-search input { max-width: 100%; }

/* ─── Stats ───────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 28px 0;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 1.875rem; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 0.8125rem; color: var(--text-light); margin-top: 4px; }

.progress-bar-wrap { background: var(--bg-alt); border-radius: 4px; height: 6px; margin-top: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #FBBF24); border-radius: 4px; transition: width .4s; }

/* ─── Tables ─────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--border);
    background: var(--bg-alt);
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-alt); }

/* ─── Card / Panel ───────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h2 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.card-body { padding: 22px; }

/* ─── Auth pages ─────────────────────────────────────────── */
.auth-wrap {
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-alt);
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 6px;
}
.auth-card p.subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9375rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-muted); }

/* ─── Profile ────────────────────────────────────────────── */
.profile-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}
.profile-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-info h1 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 4px; }
.profile-info p  { color: var(--text-muted); font-size: 0.9375rem; max-width: 480px; }

/* ─── Admin ──────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 66px); }
.admin-sidebar {
    background: var(--text);
    padding: 24px 0;
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
}
.admin-sidebar-title { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #78716C; padding: 6px 20px 12px; }
.admin-nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #A8A29E;
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav-link.active { color: var(--white); border-left-color: var(--accent); background: rgba(255,255,255,.06); }
.admin-content { padding: 32px 36px; background: var(--bg); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { font-family: var(--font-display); font-size: 1.5rem; }

/* ─── Homepage Hero ──────────────────────────────────────── */
.home-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 72px 0 60px;
    text-align: center;
}
.home-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--text);
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.15;
}
.home-hero h1 em { color: var(--accent); font-style: italic; }
.home-hero p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 540px;
    margin: 0 auto 32px;
}
.home-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.home-brands {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.home-brands h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 20px; }
.brand-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-chip {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    background: var(--white);
}
.brand-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ─── Region / Type filter chips ────────────────────────── */
.region-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--white);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.region-chip:hover  { border-color: var(--accent); color: var(--accent); }
.region-chip.active { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 28px 0;
    flex-wrap: wrap;
}
.page-link {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    background: var(--white);
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ─── Empty state ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 20px; opacity: .35; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 0.9375rem; max-width: 360px; margin: 0 auto 20px; }

/* ─── Utilities ───────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.8125rem; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner { gap: 12px; }
    .main-nav { gap: 2px; }
    .nav-link { padding: 6px 8px; font-size: 0.8125rem; }
    .tape-detail-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .auth-card { padding: 28px 24px; }
    .filter-bar { flex-direction: column; }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet and below */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.mobile-open {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background: var(--bg-alt);
    }
    
    /* Logo adjustments */
    .logo-text {
        display: flex;
        flex-direction: column;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-sub {
        font-size: 0.625rem;
    }
    
    /* Grid layouts to single column */
    .tape-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .members-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Hero sections */
    .page-hero h1 {
        font-size: 2rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Tape detail page */
    .tape-detail-visual {
        min-height: 200px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 16px;
    }
    
    /* Filter sections */
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Catalog filters */
    .catalog-filters {
        flex-direction: column;
    }
    
    select, input[type="text"], input[type="email"], input[type="password"], input[type="url"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile only (phones) */
@media (max-width: 480px) {
    .logo-name {
        font-size: 0.875rem;
    }
    
    .logo-sub {
        display: none;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .page-hero p {
        font-size: 0.875rem;
    }
    
    /* Smaller buttons on mobile */
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    /* Tape cards */
    .tape-card {
        border-radius: 8px;
    }
    
    .tape-card-info {
        padding: 12px;
    }
    
    .tape-card-title {
        font-size: 1rem;
    }
    
    /* Stats and meta info */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .main-nav {
        padding-top: 60px;
    }
    
    .nav-link {
        padding: 10px 16px;
    }
}

/* Catalog-specific mobile styles */
@media (max-width: 768px) {
    .filter-bar {
        padding: 16px !important;
    }
    
    .filter-group {
        width: 100%;
        min-width: 100% !important;
    }
    
    .filter-select {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .filter-tags {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Year range inputs */
    input[type="number"] {
        width: 80px !important;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    position: relative;
    background: white;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}
