/**
 * =====================================================
 * TRILHEIROS ANÓNIMOS - Estilos Frontend
 * =====================================================
 * Ficheiro: assets/css/style.css
 * Descrição: Estilos gerais do site
 */

:root {
    --cor-primaria: #1a1a1a;
    --cor-secundaria: #c41e3a;
    --cor-terciaria: #ffffff;
    --cor-neutro: #f5f5f5;
    --cor-sucesso: #28a745;
    --cor-aviso: #ffc107;
    --cor-erro: #dc3545;
    --cor-info: #17a2b8;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--cor-primaria);
}

a {
    color: var(--cor-secundaria);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: darken(var(--cor-secundaria), 10%);
    text-decoration: underline;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--cor-secundaria) !important;
}

/* Buttons */
.btn-danger {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

.btn-danger:hover {
    background-color: darken(var(--cor-secundaria), 10%);
    border-color: darken(var(--cor-secundaria), 10%);
    transform: translateY(-2px);
}

.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--cor-primaria);
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--cor-primaria);
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background-color: var(--cor-primaria);
    color: white;
    margin-top: 60px;
    border-top: 3px solid var(--cor-secundaria);
}

.footer a {
    color: white;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--cor-secundaria);
    text-decoration: none;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-3px);
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 4px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding-left: 0;
}

.breadcrumb-item.active {
    color: var(--cor-secundaria);
    font-weight: 600;
}

/* Pagination */
.page-link {
    color: var(--cor-secundaria);
    border-color: #ddd;
}

.page-link:hover {
    background-color: var(--cor-secundaria);
    color: white;
    border-color: var(--cor-secundaria);
}

.page-item.active .page-link {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

/* Loading Spinner */
.spinner-border {
    color: var(--cor-secundaria);
}

/* Utilities */
.text-danger {
    color: var(--cor-secundaria) !important;
}

.bg-danger {
    background-color: var(--cor-secundaria) !important;
}

.border-danger {
    border-color: var(--cor-secundaria) !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Grid Responsivo */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navbar Gradient */
.navbar-dark {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--cor-secundaria);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: darken(var(--cor-secundaria), 10%);
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--cor-secundaria);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: darken(var(--cor-secundaria), 10%);
}