/* ============================================================
   Press Kit - Grupo Parakunde
   ============================================================ */

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

:root {
    --red:    #c51616;
    --red2:   #8a0808;
    --gold:   #d4af37;
    --black:  #090909;
    --dark:   #101317;
    --panel:  #161616;
    --gray:   #252525;
    --light:  #f5f5f5;
    --white:  #fff;
    --border: #ddd;
    --text:   #111;
    --radius: 12px;
    --shadow: 0 20px 60px rgba(0,0,0,.4);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--black);
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.btn:hover { background: var(--red2); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: #333; }
.btn.secondary:hover { background: #444; }
.btn.danger { background: #dc2626; }
.btn.danger:hover { background: #b91c1c; }

/* --- Inputs --- */
.input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    margin: 4px 0 14px;
    transition: border .2s;
}
.input:focus, textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(197,22,22,.15);
}
textarea { resize: vertical; min-height: 100px; }
input[type="color"] { width: 60px; height: 40px; padding: 2px; cursor: pointer; }
input[type="file"] { padding: 10px; }

/* ============================================================
   PUBLIC PRESS KIT PAGE
   ============================================================ */

/* --- Hero Cover --- */
.cover {
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--red), var(--black) 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.cover-inner {
    max-width: 780px;
    width: 100%;
    text-align: center;
}
.crown {
    font-size: 48px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,.4);
}
.logo-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0,0,0,.5);
    margin: 8px 0;
}
.band-name {
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-img {
    max-width: 500px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.press-badge {
    display: inline-block;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 20px 0;
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.social-links a {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.social-links a:hover {
    background: var(--red);
    border-color: var(--red);
}
.cover-footer {
    margin-top: 24px;
    font-size: 13px;
    color: #999;
}

/* --- Sections --- */
.section {
    max-width: 780px;
    margin: auto;
    padding: 60px 20px;
    color: var(--text);
    background: #fafafa;
}
.section:nth-child(even) { background: #fff; }

.section h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

.section p { margin-bottom: 10px; color: #333; }

/* --- Metrics --- */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.metric {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.metric h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 6px;
}
.metric p {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}
.metric img.qr {
    width: 120px;
    height: 120px;
    margin: 10px auto 0;
    border-radius: 6px;
}

/* --- Photo Grid (Public) --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.photo-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform .3s;
}
.photo-grid img:hover { transform: scale(1.03); }

/* --- Contact --- */
#contato .section { background: #fafafa; }

/* --- Print (PDF) --- */
@media print {
    .printbar { display: none !important; }
    .cover { min-height: auto; padding: 30px; }
    body { background: #fff; }
    .section { background: #fff !important; break-inside: avoid; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .photo-grid img { height: 200px; }
    .social-links a { border-color: #ccc; color: var(--text); background: #f0f0f0; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* --- Admin Layout --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background: var(--dark);
    border-right: 1px solid var(--gray);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.sidebar-brand {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--gray);
}
.sidebar-brand .name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}
.sidebar-brand .sub {
    display: block;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    transition: all .15s;
}
.sidebar-nav a:hover { background: var(--gray); color: #fff; }
.sidebar-nav a.active { background: var(--red); color: #fff; font-weight: 600; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--gray); }

/* --- Main Content --- */
.admin-main {
    flex: 1;
    background: var(--light);
    color: var(--text);
    min-height: 100vh;
}
.admin-main .page-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 28px;
}
.admin-main .page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
}
.admin-main .page-body { padding: 24px 28px; }

/* --- Panel / Card --- */
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.panel h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
}

/* --- Stats Grid --- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.stat b { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.stat h2 { font-size: 28px; font-weight: 800; margin: 4px 0 0; color: var(--black); border: 0; padding: 0; }
.stat:first-child { background: linear-gradient(135deg, var(--red), #8a0808); }
.stat:first-child b { color: rgba(255,255,255,.7); }
.stat:first-child h2 { color: #fff; }

/* --- Grid Form Layout --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- Admin Photo Grid --- */
.admin-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.admin-photos .photo-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.admin-photos .photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.admin-photos .photo-card .info {
    padding: 12px 14px;
    font-size: 13px;
    color: #666;
}
.admin-photos .photo-card .actions {
    padding: 0 14px 14px;
}

/* --- Success/Error Messages --- */
.msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}
.msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #8b0000, #050505 70%);
}
.login-card {
    background: var(--panel);
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 32px;
    width: 380px;
    max-width: 90vw;
    box-shadow: var(--shadow);
    text-align: center;
}
.login-card h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.login-card .subtitle {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}
.login-card .input {
    background: #fff;
    border: 1px solid #333;
    color: var(--text);
    margin-bottom: 12px;
}
.login-card .btn { width: 100%; margin-top: 8px; }

/* --- Print Bar (PDF page) --- */
.printbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- Preview image --- */
.preview-img {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 8px;
}

/* --- Empty state --- */
.empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
