/**
 * Portal Metal - Estilos CSS Completos
 * Design profissional com tema metal português
 */

/* Reset e variáveis CSS */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #1a1a1a;
    --accent-color: #333;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --background-dark: #0d0d0d;
    --background-card: #1f1f1f;
    --border-color: #444;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial Black', Arial, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Layout principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.logo:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Navegação */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-item a {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-item a:hover,
.nav-item a.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.admin-link {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Pesquisa */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-card);
    color: var(--text-color);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.search-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Navegação alfabética */
.alphabet-nav {
    background: var(--background-card);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.alphabet-nav h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.alphabet-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.letter-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.letter-btn:hover,
.letter-btn.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.clear-filters {
    background: var(--error-color);
    margin-left: 1rem;
}

.clear-filters:hover {
    background: #c82333;
}

/* Cards das bandas */
.bandas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.banda-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.banda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.banda-image {
    width: 100%;
    height: 200px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banda-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.banda-image:hover img {
    transform: scale(1.05);
}

.banda-image i {
    font-size: 4rem;
    color: var(--border-color);
}

.banda-info {
    padding: 1.5rem;
}

.banda-nome {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.banda-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.banda-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.banda-meta i {
    color: var(--primary-color);
    width: 16px;
}

.banda-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.banda-actions {
    display: flex;
    gap: 0.5rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #555;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success-color);
    color: #d4edda;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--error-color);
    color: #f8d7da;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid var(--warning-color);
    color: #fff3cd;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid var(--info-color);
    color: #d1ecf1;
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-card);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Página de detalhes */
.banda-header {
    background: var(--background-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.banda-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.banda-header-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banda-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banda-header-image i {
    font-size: 4rem;
    color: var(--border-color);
}

.banda-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banda-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Seções de conteúdo */
.content-section {
    background: var(--background-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.content-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Membros */
.membros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.membro-card {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.membro-nome {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.membro-funcao {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Discografia */
.discografia-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-card {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.album-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.album-actions {
    display: flex;
    gap: 0.5rem;
}

/* Redes sociais */
.redes-sociais {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rede-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.rede-social:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.rede-social i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .alphabet-letters {
        gap: 0.25rem;
    }
    
    .letter-btn {
        padding: 0.25rem 0.5rem;
        min-width: 35px;
        font-size: 0.9rem;
    }
    
    .bandas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banda-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banda-header-image {
        margin: 0 auto;
    }
    
    .membros-grid {
        grid-template-columns: 1fr;
    }
    
    .album-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .redes-sociais {
        justify-content: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .banda-header {
        padding: 1rem;
    }
    
    .search-input {
        width: 150px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Estados de loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utilitários */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* =================================== */
/* ESTILOS PARA A DISCOGRAFIA COM CAPAS */
/* =================================== */

.album-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem; /* Adicionado para espaçar os álbuns */
}

.album-cover {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #111;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover i {
    font-size: 2.5rem;
    color: var(--border-color);
}

.album-info {
    flex-grow: 1;
}

.album-actions {
    flex-shrink: 0;
}
