/* --- ALMAS LITERARIAS PREMIUM - V2 --- */
/* Tema: Noche de Lectura (Oscuro + Oro Viejo) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --bg-body: #111315;
    --bg-card: rgba(26, 28, 30, 0.95);
    --primary: #d4af37; /* Oro Viejo */
    --primary-hover: #f1c40f;
    --text-main: #fcfcfc;
    --text-muted: #a9b0b7;
    --border: #3a3d42;
    --input-bg: #222528;
    --error: #e74c3c;
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 50% 0%, #1e2226 0%, #111315 70%);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; margin-top: 0; }

.al-container { max-width: 700px; margin: 4rem auto; padding: 0 20px; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.al-card {
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 3rem; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.al-form label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.al-form input[type="text"], .al-form input[type="email"], .al-form input[type="password"], .al-form textarea {
    width: 100%; padding: 14px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px; color: white; font-family: inherit; box-sizing: border-box; margin-bottom: 20px;
}
.al-form input:focus, .al-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }

.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.checkbox-group input { width: auto; transform: scale(1.2); cursor: pointer; }
.checkbox-group label { margin: 0; text-transform: none; font-weight: 400; cursor: pointer; }

.legal-box { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 6px; margin: 20px 0; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.05); }

.al-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 30px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none; font-size: 0.9rem; transition: all 0.3s ease;
}
.al-btn-primary { background: var(--primary); color: #111; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.al-btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4); }
.al-btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.al-btn-outline:hover { background: rgba(212, 175, 55, 0.1); }
.al-btn-sm { padding: 8px 20px; font-size: 0.8rem; }

.al-profile-header { text-align: center; }
.al-profile-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin-bottom: 15px; box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
.al-badge { background: #2a2d31; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); border: 1px solid var(--border); }
.al-book-tag { display: inline-block; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.4); color: #fff; padding: 6px 12px; border-radius: 4px; margin: 4px; font-size: 0.9rem; transition: 0.3s; }
.al-book-tag.shared { background: rgba(255, 255, 255, 0.05); border-color: #555; color: var(--primary); }
.al-alert-error { background: var(--error); padding: 15px; border-radius: 6px; margin-bottom: 20px; color: white; font-weight: bold; border-left: 4px solid #c0392b; }

.al-match-row { display: flex; flex-direction: column; gap: 15px; padding: 25px; margin-bottom: 20px; }
.al-match-header { display: flex; align-items: center; gap: 20px; }
.al-match-header img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.private-avatar { width: 80px; height: 80px; border-radius: 50%; background: #222; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #555; border: 2px dashed #444; }
.match-info { flex-grow: 1; }
.match-score { color: var(--primary); font-weight: bold; margin-top: 5px; font-size: 1.1rem;}
.badge-private { color: #888; font-size: 0.85rem; font-style: italic; background: #222; padding: 5px 10px; border-radius: 4px;}

.shared-books-container { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 6px; margin-top: 10px; border-left: 3px solid var(--primary); }
.shared-books-container p { margin: 0 0 12px 0; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.poetic-text { font-family: 'Playfair Display', serif; font-style: italic; color: #eee; line-height: 1.8; }

/* Scrollbar Personalizada para el Chat */
.al-chat-box::-webkit-scrollbar { width: 8px; }
.al-chat-box::-webkit-scrollbar-track { background: var(--bg-card); }
.al-chat-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.al-chat-box::-webkit-scrollbar-thumb:hover { background: var(--primary); }