@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Ultra Luxury */
    --primary-bg: #050505;       /* Preto absoluto para profundidade */
    --secondary-bg: #0f1115;     /* Cinza carvão muito escuro */
    --surface-bg: rgba(255, 255, 255, 0.03); /* Vidro subtil */
    
    /* Gold Gradients */
    --gold-main: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 40%, #b38728 60%, #fbf5b7 100%);
    --gold-text-gradient: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-bg);
    /* Adiciona uma vinheta subtil para focar o olhar no centro */
    background-image: radial-gradient(circle at center, #111 0%, #000 100%);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* --- Typography Utility --- */
.text-gold {
    color: var(--gold-main); /* Fallback */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-tracking {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Navbar Glass --- */
.navbar {
    background: rgba(5, 5, 5, 0.7) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.2rem 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main) !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: #fff !important;
}

/* --- Buttons High End --- */
.btn-premium {
    background: var(--gold-gradient);
    background-size: 300% 100%;
    border: none;
    color: #000;
    padding: 16px 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 0; /* Bordas retas são mais modernas/luxo */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium:hover {
    background-position: 100% 0;
    box-shadow: 0 0 30px rgba(191, 149, 63, 0.4);
    color: #000;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    padding: 16px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    border-color: var(--gold-main);
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* --- Hero Section Corrigido --- */
.hero-section {
    position: relative;
    height: 90vh; /* Altura imponente */
    display: flex;
    align-items: center;
    /* Imagem: Um desportivo de luxo com iluminação cinemática */
    background: url('https://images.unsplash.com/photo-1617788138017-80ad40651399?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* 'fixed' às vezes falha em telemóveis, 'scroll' é mais seguro */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradiente muito mais suave: transparente em cima, escurece apenas em baixo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 70%, #050505 100%);
    z-index: 1;
}

/* Garante que o texto fica acima da imagem */
.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra no texto para leitura perfeita */
}

/* --- Fix de Legibilidade do Texto Hero --- */
.hero-desc {
    color: #e5e5e5 !important; /* Branco sujo (mais luxuoso que branco puro) */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1) !important; /* Sombra preta forte atrás das letras */
    line-height: 1.6;
}

/* --- Cards & Glass Panels --- */
.section-padding {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.line-gold {
    width: 80px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 20px auto;
}

.glass-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-subtle);
    padding: 50px 30px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(191, 149, 63, 0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.glass-card i {
    font-size: 2rem;
    margin-bottom: 30px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Footer Premium Fix --- */
footer {
    background-color: #020202; /* Preto profundo */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Linha muito subtil */
    padding-top: 80px;
    padding-bottom: 40px;
    font-size: 0.9rem;
}

footer h5 {
    font-family: 'Playfair Display', serif;
    color: #fff; /* Título branco puro */
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Forçar a cor do texto descritivo para ser legível */
footer p, footer li {
    color: #a0a0a0 !important; /* Cinza platina claro para leitura */
    line-height: 1.8;
}

/* Estilo dos Links - Remove o azul feio */
footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: #a0a0a0 !important; /* Começa cinza */
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--gold-main) !important; /* Fica dourado ao passar o rato */
    transform: translateX(5px); /* Move-se ligeiramente para a direita */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Ícones de contacto */
footer i {
    color: var(--gold-main) !important; /* Garante que os ícones são dourados */
    width: 25px; /* Alinhamento fixo */
    text-align: center;
}

/* Copyright area */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #666 !important;
}

/* --- Backoffice Premium --- */

/* Sidebar / Nav Admin */
.admin-nav {
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.admin-link {
    color: var(--text-muted);
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-link:hover, .admin-link.active {
    background-color: rgba(198, 168, 124, 0.05);
    color: var(--gold-main);
    border-left-color: var(--gold-main);
}

/* Tabelas Admin */
.table-premium {
    color: var(--text-muted);
    border-color: var(--border-color);
}

.table-premium th {
    background-color: var(--secondary-bg);
    color: var(--gold-main);
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--border-color);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-premium td {
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
    color: #fff;
}

.table-premium tr:hover td {
    background-color: rgba(255,255,255,0.02);
}

/* Admin Cards */
.card-premium {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.card-header-premium {
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

/* Login Page Specific */
.login-body {
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    background: rgba(11, 15, 25, 0.9);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}