/* =============================================
   LoveNet - Estilos principais com Temas
   Arquivo: assets/css/style.css
   ============================================= */

/* === VARIÁVEIS DO TEMA CLARO (padrão) === */
:root {
    --ln-primary: #e91e63;
    --ln-primary-dark: #c2185b;
    --ln-secondary: #ff5722;
    --ln-accent: #ff80ab;
    
    /* Cores claras */
    --ln-dark: #f8f9fa;
    --ln-darker: #ffffff;
    --ln-card: #ffffff;
    --ln-surface: #e9ecef;
    --ln-text: #212529;
    --ln-text-muted: #6c757d;
    --ln-border: #dee2e6;
    --ln-border-light: #e9ecef;
    
    --ln-gradient: linear-gradient(135deg, #e91e63, #ff5722);
    --ln-gradient-dark: linear-gradient(135deg, #f8f9fa, #e9ecef);
    --ln-shadow: 0 8px 32px rgba(0,0,0,0.08);
    --ln-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --ln-radius: 16px;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

/* === TEMA ESCURO === */
[data-theme="dark"] {
    --ln-dark: #1a1a2e;
    --ln-darker: #0f0f1a;
    --ln-card: #16213e;
    --ln-surface: #0f3460;
    --ln-text: #f0f0f0;
    --ln-text-muted: #94a3b8;
    --ln-border: rgba(255,255,255,0.08);
    --ln-border-light: rgba(255,255,255,0.04);
    --ln-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --ln-shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
}

/* === BASE === */
* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--ln-darker);
    color: var(--ln-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === BOTÃO DE TEMA === */
.theme-toggle {
    background: var(--ln-surface);
    border: 1px solid var(--ln-border);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    color: var(--ln-text);
}

.theme-toggle:hover {
    background: var(--ln-primary);
    color: white;
    transform: translateY(-2px);
}

.theme-toggle i {
    font-size: 1.1rem;
}

/* Esconder toggle de tema no modo automático enquanto carrega */
.theme-toggle.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* === NAVBAR === */
.ln-navbar {
    background: var(--ln-dark) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ln-border);
    padding: 12px 0;
    transition: background 0.3s ease;
}

.ln-brand {
    font-family: var(--font-display);
    font-size: 1.6rem !important;
    background: var(--ln-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
}

.ln-brand i { 
    -webkit-text-fill-color: var(--ln-primary);
}

.ln-avatar-sm {
    width: 32px; 
    height: 32px;
    object-fit: cover;
    border: 2px solid var(--ln-primary);
}

.ln-dropdown {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 8px;
}

.ln-dropdown .dropdown-item {
    color: var(--ln-text);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.ln-dropdown .dropdown-item:hover {
    background: var(--ln-surface);
    color: var(--ln-text);
}

.ln-dropdown .dropdown-divider { 
    border-color: var(--ln-border); 
}

/* === MAIN === */
.ln-main { 
    flex: 1; 
    padding: 30px 0; 
}

/* === FOOTER === */
.ln-footer {
    background: var(--ln-dark);
    border-top: 1px solid var(--ln-border);
    color: var(--ln-text-muted);
}

/* === BOTÕES === */
.ln-btn-primary {
    background: var(--ln-gradient);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ln-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--ln-shadow);
    color: white;
}

.btn-like {
    background: var(--ln-gradient);
    border: none;
    color: white;
    border-radius: 50%;
    width: 60px; 
    height: 60px;
    font-size: 1.4rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233,30,99,0.4);
}

.btn-like:hover { 
    transform: scale(1.15); 
}

.btn-ignore {
    background: rgba(0,0,0,0.05);
    border: 2px solid var(--ln-border);
    color: var(--ln-text);
    border-radius: 50%;
    width: 60px; 
    height: 60px;
    font-size: 1.4rem;
    transition: all 0.3s;
}

.btn-ignore:hover { 
    background: rgba(0,0,0,0.1); 
    transform: scale(1.1); 
}

/* === CARDS === */
.ln-card {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    overflow: hidden;
    transition: all 0.3s;
}

.ln-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ln-shadow-hover);
    border-color: var(--ln-primary);
}

/* === USER CARD (Feed Estilo Tinder) === */
.user-card {
    background: var(--ln-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--ln-border);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--ln-shadow);
}

.user-card-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.user-card-overlay {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 20px 16px;
}

.user-card-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-card-info { 
    color: rgba(255,255,255,0.9); 
    font-size: 0.9rem; 
}

.user-card-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--ln-card);
}

/* === POST CARD === */
.post-card {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.post-card:hover { 
    box-shadow: var(--ln-shadow-hover); 
}

.post-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--ln-border-light);
}

.post-avatar {
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ln-primary);
}

.post-card-body { 
    padding: 20px; 
}

.post-card-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 12px;
}

/* === MATCH CARD === */
.match-card {
    background: var(--ln-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ln-border);
    text-align: center;
    padding: 24px 16px;
    transition: all 0.3s;
    position: relative;
}

.match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ln-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.match-card:hover::before { 
    opacity: 0.05; 
}

.match-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--ln-shadow-hover); 
}

.match-avatar {
    width: 90px; 
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ln-primary);
    margin-bottom: 12px;
}

.match-badge {
    background: var(--ln-gradient);
    color: white;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

/* === FORMULÁRIOS === */
.ln-form-control {
    background: var(--ln-surface) !important;
    border: 1px solid var(--ln-border) !important;
    color: var(--ln-text) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s;
}

.ln-form-control:focus {
    border-color: var(--ln-primary) !important;
    box-shadow: 0 0 0 3px rgba(233,30,99,0.15) !important;
    background: var(--ln-card) !important;
}

.ln-form-control::placeholder { 
    color: var(--ln-text-muted) !important; 
}

.ln-label {
    color: var(--ln-text);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.ln-select {
    background-color: var(--ln-surface) !important;
    color: var(--ln-text) !important;
    border: 1px solid var(--ln-border) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

.ln-select option { 
    background: var(--ln-card); 
    color: var(--ln-text); 
}

/* === AUTH PAGES === */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--ln-shadow);
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    background: var(--ln-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    display: block;
    margin-bottom: 8px;
}

/* === DASHBOARD === */
.stat-card {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover { 
    border-color: var(--ln-primary);
    transform: translateY(-4px);
    box-shadow: var(--ln-shadow-hover);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--ln-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--ln-text);
}

.stat-label { 
    color: var(--ln-text-muted); 
    font-size: 0.9rem; 
}

/* === PERFIL === */
.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b, #e91e63);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 60%);
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ln-darker);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-card {
    background: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: 0 0 20px 20px;
    padding: 70px 30px 30px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ln-text);
}

.profile-badge {
    background: rgba(233,30,99,0.15);
    color: var(--ln-primary);
    border: 1px solid rgba(233,30,99,0.3);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* === ADMIN === */
.admin-sidebar {
    background: var(--ln-card);
    border-right: 1px solid var(--ln-border);
    min-height: calc(100vh - 80px);
    padding: 20px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--ln-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover, 
.admin-nav-link.active {
    color: var(--ln-primary);
    background: rgba(233,30,99,0.08);
    border-left-color: var(--ln-primary);
}

.admin-table {
    background: var(--ln-card);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table thead th {
    background: rgba(233,30,99,0.08);
    color: var(--ln-primary);
    font-weight: 600;
    border-color: var(--ln-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-color: var(--ln-border) !important;
    transition: background 0.2s;
}

.admin-table tbody tr:hover { 
    background: rgba(233,30,99,0.03); 
}

.admin-table td { 
    color: var(--ln-text); 
    border-color: var(--ln-border) !important; 
    vertical-align: middle; 
}

/* === HERO HOME === */
.hero-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(233,30,99,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    background: var(--ln-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--ln-text-muted);
    max-width: 500px;
    margin: 0 auto 40px;
}

.floating-hearts {
    position: absolute;
    width: 100%; 
    height: 100%;
    top: 0; 
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-hearts span {
    position: absolute;
    animation: floatHeart 6s infinite ease-in-out;
    color: var(--ln-primary);
    opacity: 0.2;
    font-size: 1.5rem;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-30px) rotate(15deg); opacity: 0.5; }
}

/* === BADGES E PILLS === */
.badge-admin { 
    background: linear-gradient(135deg, #f59e0b, #ef4444); 
    color: white;
}
.badge-active { 
    background: rgba(16,185,129,0.15); 
    color: #10b981; 
    border: 1px solid rgba(16,185,129,0.3); 
}
.badge-banned { 
    background: rgba(239,68,68,0.15); 
    color: #ef4444; 
    border: 1px solid rgba(239,68,68,0.3); 
}

/* === PAGE TITLE === */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ln-border);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--ln-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ALERTS === */
.alert { 
    border-radius: 12px; 
    border: none; 
}
.alert-success { 
    background: rgba(16,185,129,0.12); 
    color: #0a8c5a; 
    border-left: 4px solid #10b981;
}
.alert-danger { 
    background: rgba(239,68,68,0.12); 
    color: #c2410c; 
    border-left: 4px solid #ef4444;
}
.alert-warning { 
    background: rgba(245,158,11,0.12); 
    color: #b45309; 
    border-left: 4px solid #f59e0b;
}
.alert-info { 
    background: rgba(59,130,246,0.12); 
    color: #1e40af; 
    border-left: 4px solid #3b82f6;
}

[data-theme="dark"] .alert-success { color: #34d399; }
[data-theme="dark"] .alert-danger { color: #f87171; }
[data-theme="dark"] .alert-warning { color: #fbbf24; }
[data-theme="dark"] .alert-info { color: #60a5fa; }

/* === FOTO UPLOAD PREVIEW === */
.upload-preview {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ln-primary);
    display: none;
}

.upload-area {
    border: 2px dashed var(--ln-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover { 
    border-color: var(--ln-primary); 
    background: rgba(233,30,99,0.05); 
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .auth-card { padding: 24px 20px; }
    .profile-photo { width: 120px; height: 120px; }
    .user-card-img { height: 320px; }
    .admin-sidebar { min-height: auto; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ln-surface); }
::-webkit-scrollbar-thumb { background: var(--ln-primary); border-radius: 3px; }

/* === SELEÇÃO DE TEXTO === */
::selection { background: rgba(233,30,99,0.3); color: var(--ln-text); }

/* === ANIMAÇÕES === */
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* === COMENTÁRIOS COM SCROLL === */
.comentarios-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.comentarios-scroll::-webkit-scrollbar {
    width: 4px;
}

.comentarios-scroll::-webkit-scrollbar-thumb {
    background: var(--ln-primary);
    border-radius: 10px;
}

/* === MELHORIA DE VISIBILIDADE PERFIL === */
.profile-card p,
.profile-card span {
    color: var(--ln-text);
}

.profile-card small {
    color: var(--ln-text-muted);
}

.profile-about {
    background: var(--ln-surface);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--ln-border-light);
    margin-top: 10px;
    color: var(--ln-text);
    line-height: 1.5;
}

h5, h6 {
    color: var(--ln-text);
    margin-bottom: 8px;
}

.profile-header {
    padding: 10px 0;
}

.profile-text {
    color: var(--ln-text);
    line-height: 1.5;
}

.section-title {
    color: var(--ln-primary);
    margin-bottom: 5px;
}

/* === LOADING PARA TEMA === */
.theme-loading {
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-loaded {
    opacity: 1;
}
/* === BOTÃO DE TEMA MELHORADO === */
.theme-toggle {
    background: var(--ln-surface);
    border: 1px solid var(--ln-border);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--ln-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    background: var(--ln-primary);
    border-color: var(--ln-primary);
    color: white;
}

.theme-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Loading states */
.theme-loading {
    opacity: 0;
}

.theme-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Transições suaves para elementos que mudam de cor */
.ln-card,
.post-card,
.match-card,
.stat-card,
.auth-card,
.profile-card,
.admin-sidebar,
.ln-navbar,
.ln-footer,
.modal-content,
.dropdown-menu,
.toast {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Melhorias de contraste no modo claro */
[data-theme="light"] .user-card-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

[data-theme="light"] .user-card-name {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="light"] .user-card-info {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

[data-theme="light"] .btn-ignore {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.2);
}

[data-theme="light"] .btn-ignore:hover {
    background: rgba(0,0,0,0.1);
}

/* Responsividade para o botão de tema */
@media (max-width: 768px) {
    .theme-toggle span {
        display: none;
    }
    
    .theme-toggle {
        padding: 8px 12px;
    }
    
    .theme-toggle i {
        margin: 0;
    }
}
.badge-premium {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
  transition: 0.2s;
}

.badge-premium:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.6));
}
/* BOTÕES ADMIN */
.btn-admin {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 2px 6px;
  border: 1px solid;
  text-decoration: none;
  display: inline-block;
}

/* Premium ativar */
.btn-premium {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  border-color: rgba(59,130,246,0.3);
}

/* Premium remover */
.btn-premium-remove {
  background: rgba(234,179,8,0.1);
  color: #eab308;
  border-color: rgba(234,179,8,0.3);
}