/* =========================================
   GLOBAL CSS VARIABLES & UTILITIES
   ========================================= */

/* CSS Variables - Available globally */
:root {
    --swappit-blue: #2563eb;
    --swappit-blue-hover: #1d4ed8;
    --swappit-orange: #f97316;
    --bg-primary: #ffffff;
    --text-primary: #1f2937;
    --border-color: #e5e7eb;
    --neutral-light: #f3f4f6;
    --neutral-dark: #111827;
    --font-primary: 'Inter', sans-serif;
    --header-height: 80px;
}

/* =========================================
   GLOBAL BODY STYLES
   ========================================= */

/* Ensure body has proper padding for fixed header */
body {
    padding-top: var(--header-height);
    margin: 0;
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
}

/* =========================================
   GLOBAL UTILITY CLASSES
   ========================================= */

/* Bootstrap-like utility classes for use outside components */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
}

@media (max-width: 991px) {
    .d-lg-none { display: none !important; }
}

/* =========================================
   GLOBAL FONT AWESOME OVERRIDES
   ========================================= */

/* Ensure Font Awesome icons work properly in Web Components */
.fas, .fab, .far, .fal {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro";
    font-weight: 900;
}

.fab {
    font-weight: 400;
}

/* =========================================
   GLOBAL ANIMATIONS
   ========================================= */

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* =========================================
   GLOBAL FOCUS STYLES
   ========================================= */

/* Ensure accessibility with proper focus styles */
*:focus {
    outline: 2px solid var(--swappit-blue);
    outline-offset: 2px;
}

/* =========================================
   GLOBAL PRINT STYLES
   ========================================= */

@media print {
    app-header,
    app-footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* CSS para componentes - Estilos globales */

/* Font Awesome para Web Components */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Estilos base para componentes */
:host {
    display: block;
    width: 100%;
}

/* Estilos para el body cuando hay header fijo */
body {
    padding-top: 80px;
}

/* Estilos para el contenido principal */
main {
    min-height: calc(100vh - 80px);
}

/* Estilos para el footer */
footer {
    margin-top: auto;
}