/**
 * Custom styles for OB AG UI application
 * Bootstrap variable overrides and application-specific styles
 * 
 * Fonts and colors extracted from https://obagapp.stage.obuilds.com
 */

/* Import fonts from obagapp.stage.obuilds.com */
@import url("https://fonts.googleapis.com/css?family=Ubuntu|Ubuntu:700|Ubuntu:600|Ubuntu:500");
@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:900");

/* Override Bootstrap CSS variables */
:root {
    /* Color palette - extracted from obagapp.stage.obuilds.com */
    --bs-primary: #5d5afa;        /* primary purple/blue */
    --bs-secondary: #414552;     /* dark gray */
    --bs-success: #26C485;       /* green */
    --bs-info: #7572FA;          /* lighter purple */
    --bs-warning: #FCBA04;       /* yellow/orange */
    --bs-danger: #EC4E20;        /* red/orange */
    --bs-light: rgba(248, 248, 248, 1);         /* light gray */
    --bs-dark: #21233C;          /* dark blue-gray */
    
    /* RGB values for Bootstrap color utilities */
    --bs-primary-rgb: 93, 90, 250;
    --bs-secondary-rgb: 65, 69, 82;
    --bs-success-rgb: 38, 196, 133;
    --bs-info-rgb: 117, 114, 250;
    --bs-warning-rgb: 252, 186, 4;
    --bs-danger-rgb: 236, 78, 32;
    --bs-light-rgb: 248, 248, 248;
    --bs-dark-rgb: 33, 35, 60;
    
    /* Typography - Bootstrap font variables */
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-family: "Ubuntu", sans-serif;
    --bs-heading-font-family: "Nunito Sans", sans-serif;
    --bs-heading-font-weight: 900;
    
    /* Heading color */
    --bs-heading-color: #21233C;
    
    /* Link colors - Bootstrap link variables */
    --bs-link-color: #5d5afa;           /* primary purple/blue */
    --bs-link-hover-color: #4a48c8;     /* darker purple/blue */
    --bs-link-color-rgb: 93, 90, 250;
    --bs-link-hover-color-rgb: 74, 72, 200;
    
    /* Card shadow - Bootstrap card variable */
    --bs-card-box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    
    /* Box shadow */
    --bs-box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    
    /* Border radius */
    --bs-border-radius: 0.8rem;
    --bs-border-radius-sm: 0.4rem;
    --bs-border-radius-lg: 1.25rem;
    --bs-border-radius-xl: 1.5rem;
    --bs-border-radius-xxl: 2rem;
    
    /* Additional custom colors for reference */
    --primary: #5d5afa;
    --primary-translucent: rgba(93, 90, 250, 0.25);
    --secondary: #414552;
    --success: #26C485;
    --info: #7572FA;
    --warning: #FCBA04;
    --danger: #EC4E20;
    --light: rgba(248, 248, 248, 1);
    --dark: #21233C;
    
    /* Custom gradient */
    --primary-gradient-light: linear-gradient(to top left, rgba(93, 90, 250, 0.2), rgba(93, 90, 250, 0.02));
    
    /* Medal colors */
    --gold: #FFD700;
    --silver: #BFBFBF;
    --bronze: #CD7F32;
}

/* Container max-width override to match ob_ag_app */
.container-xxl {
    max-width: 1696px;
}

body {
    padding-top: 106px;
}

/* Remove body padding for info pages */
body.info-page {
    padding-top: 0;
}

[id] {
    scroll-margin-top: 106px;
}

/* Navbar logo styles */
.navbar-brand img {
    max-height: 3rem;
    max-width: 8rem;
    object-fit: contain;
}

/* Button color overrides - Bootstrap CDN may not fully respect CSS variables */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a48c8;
    --bs-btn-hover-border-color: #4a48c8;
    --bs-btn-focus-shadow-rgb: 93, 90, 250;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4a48c8;
    --bs-btn-active-border-color: #4a48c8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #343a47;
    --bs-btn-hover-border-color: #343a47;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
}

.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-warning);
    --bs-btn-border-color: var(--bs-warning);
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
}

/* Table row hover for clickable rows */
.table-row-hover:hover {
    background-color: var(--bs-light);
}

/* Feature card hover effect */
.feature-card-custom {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card-custom:hover {
    transform: translateY(-5px);
    border: 2px solid var(--bs-primary);
}

/* Trust card hover effect */
.trust-card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
}

/* CTA shape animations */
.cta-shape {
    animation: float 6s ease-in-out infinite;
}

.cta-shape-1 {
    animation-delay: 0s;
}

.cta-shape-2 {
    animation-name: float-vertical;
    animation-delay: 2s;
}

.cta-shape-3 {
    animation-name: float-horizontal;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-vertical {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-20px);
    }
}

@keyframes float-horizontal {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Field errors styling */
.field-errors {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Button outline hover effect */
.btn-outline {
    background-color: transparent;
    color: var(--bs-dark);
    border: 2px solid var(--bs-dark);
}

.btn-outline:hover {
    background-color: var(--bs-dark);
    color: white;
    transform: translateY(-2px);
}

/* Button outline light for dark backgrounds */
.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--bs-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Hide CTA shapes on small screens */
@media (max-width: 700px) {
    .cta-shape {
        display: none;
    }
}

/* Footer link styles */
.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: white;
    transform: translateX(3px);
}

/* Footer heading styles */
footer h5 {
    color: white;
    letter-spacing: 0.5px;
}

/* Footer button styles */
footer .btn-primary {
    font-weight: 500;
    transition: all 0.2s ease;
}

footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(93, 90, 250, 0.3);
}

footer .btn-outline-light {
    font-weight: 500;
    transition: all 0.2s ease;
}

footer .btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer.bg-dark .row {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    footer.bg-dark .col-lg-4,
    footer.bg-dark .col-lg-2,
    footer.bg-dark .col-lg-3 {
        text-align: center;
    }
    
    footer.bg-dark .col-lg-4 p {
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    footer.bg-dark ul {
        align-items: center;
    }
    
    footer.bg-dark .d-flex.flex-column.gap-2 {
        align-items: center;
    }
}
