/*
 * base.css - Estilos base do projeto Associação Digital
 * Bootstrap 5 - Tema customizado para associação de classe profissional
 */

/* ==========================================
   CSS Variables (Bootstrap overrides)
   ========================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;

    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --border-radius: 0.375rem;
    --transition-speed: 0.3s;
}

/* ==========================================
   Base
   ========================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

a {
    transition: color var(--transition-speed) ease;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid #fff;
}

/* ==========================================
   Cards
   ========================================== */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition-speed) ease,
                transform var(--transition-speed) ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    flex-shrink: 0;
}

footer a:hover {
    color: #fff !important;
}

/* ==========================================
   Alerts / Messages
   ========================================== */

.alert {
    border: none;
    border-radius: var(--border-radius);
}

/* ==========================================
   Utilities
   ========================================== */

.section-padding {
    padding: 4rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #6610f2);
}

.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }

    .section-padding {
        padding: 2rem 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   Print styles
   ========================================== */

@media print {
    .navbar, footer, .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}
