// Landing Page Styles - Inspinia Theme
// BlueOtter landing page using Inspinia components

// ========== Beta Announcement Banner ==========
.beta-announcement-banner {
    background: linear-gradient(135deg, $primary 0%, darken($primary, 10%) 100%);
    color: white;
    padding: 0.875rem 0;
    text-align: center;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1025;

    .badge {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    a.btn {
        transition: all 0.2s ease;

        &:hover {
            transform: translateX(3px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
    }
}

// ========== Beta Pricing Notice ==========
.beta-pricing-notice {
    max-width: 900px;
    background: linear-gradient(135deg, rgba($success, 0.08) 0%, rgba($primary, 0.05) 100%);
    border: 2px solid rgba($success, 0.3);
    border-radius: $border-radius-lg;
    padding: 1.25rem 1.5rem;
    text-align: center;

    .badge {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        padding: 0.5rem 1rem;
    }

    p {
        margin-bottom: 0;
        color: $text-primary;
        font-size: 1rem;

        strong {
            color: $success;
        }
    }
}

// Responsive adjustments for beta elements
@media (max-width: 767px) {
    .beta-announcement-banner {
        font-size: 0.8125rem;
        padding: 0.75rem 0;

        .badge {
            font-size: 0.65rem;
        }

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

    .beta-pricing-notice {
        padding: 1rem;

        .badge {
            font-size: 0.7rem;
        }

        p {
            font-size: 0.875rem;
        }
    }
}

// ========== Integrations Section ==========
.integrations-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.letter-spacing-wide {
    letter-spacing: 1px;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: $border-radius-lg;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    min-width: 100px;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-color: rgba($primary, 0.2);
    }

    img {
        height: 36px;
        width: auto;
        object-fit: contain;
        filter: grayscale(20%);
        transition: filter 0.3s ease;
    }

    &:hover img {
        filter: grayscale(0%);
    }

    .integration-name {
        font-size: 0.8125rem;
        font-weight: 600;
        color: $text-primary;
        text-transform: capitalize;
    }
}

// Responsive adjustments for integrations
@media (max-width: 767px) {
    .integrations-logos {
        gap: 0.75rem !important;
    }

    .integration-logo {
        padding: 0.75rem 1rem;
        min-width: 80px;

        img {
            height: 28px;
        }

        .integration-name {
            font-size: 0.75rem;
        }
    }
}

// OAuth Provider Buttons with hover effects
.btn-github {
    transition: all 0.3s ease;

    i {
        color: white !important;
    }

    &:hover {
        background-color: transparent !important;
        color: #24292e !important;
        border-color: #24292e !important;

        i {
            color: #24292e !important;
        }
    }
}

.btn-gitlab {
    transition: all 0.3s ease;

    i {
        color: white !important;
    }

    &:hover {
        background-color: transparent !important;
        color: #FC6D26 !important;
        border-color: #FC6D26 !important;

        i {
            color: #FC6D26 !important;
        }
    }
}

.btn-trello {
    transition: all 0.3s ease;

    &:hover {
        background-color: transparent !important;
        color: #0079BF !important;
        border-color: #0079BF !important;

        i {
            color: #0079BF !important;
        }
    }
}

// Landing navbar styling
#landing-navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    .navbar-brand {
        font-size: 1.25rem;
        color: #1a1d29;

        strong {
            color: $secondary;
        }
    }

    .nav-link {
        color: #676a6c;
        transition: color 0.2s ease;

        &:hover, &.active {
            color: $secondary;
        }
    }
}

// Section styling from Inspinia
.section-custom {
    padding: 80px 0;
}

// Card heights for equal height cards
.card-h-100 {
    height: 100%;
}

// Avatar sizing
.avatar-xl {
    width: 72px;
    height: 72px;

    .avatar-title {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.avatar-lg {
    width: 48px;
    height: 48px;

    .avatar-title {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
}

// Typography utilities from Inspinia
.fs-36 {
    font-size: 2.25rem;
}

.fs-24 {
    font-size: 1.5rem;
}

.fs-22 {
    font-size: 1.375rem;
}

.fs-xl {
    font-size: 1.125rem;
}

.fs-md {
    font-size: 1rem;
}

.fs-sm {
    font-size: 0.875rem;
}

.fs-base {
    font-size: 1rem;
}

// Section CTA styling
.section-cta {
    position: relative;
    padding: 80px 0;
}

// ========== Site Footer ==========
.site-footer {
    .footer-cta {
        background: #f8f9fa;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .footer-main {
        background: linear-gradient(180deg, #1B2E4A 0%, #0d1725 100%);
    }

    // Social links
    .social-link {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1.25rem;
        transition: color 0.2s ease;
        text-decoration: none;

        i {
            color: inherit !important;
        }

        &:hover {
            color: $secondary !important;
        }
    }

    // Links hover effect
    .list-unstyled a:hover {
        color: white !important;
    }
}

@media (max-width: 991px) {
    .site-footer .footer-cta {
        text-align: center;
    }
}

// ========== Demo Hero Section ==========
.demo-hero {
    background: linear-gradient(135deg, #1B2E4A 0%, #0d1725 100%);
}

// Mark/highlight styling
mark {
    background-color: transparent;
    color: $secondary;
    padding: 0;
}

// Border utilities
.border-dashed {
    border-style: dashed !important;
}

// Card side image overlay
.card-side-img {
    background-size: cover;
    background-position: center;
}

// Button outline light for CTA
.btn-outline-light {
    color: white;
    border-color: white;
    background: transparent;

    &:hover {
        background: white;
        color: $secondary;
        border-color: white;
    }
}

// Ensure sections have proper spacing
section {
    position: relative;
}

// Smooth scrolling for the page
html {
    scroll-behavior: smooth;
}

// Sticky navbar behavior
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

// Badge subtle variants (for "Populaire" label)
.badge.bg-primary-subtle {
    background-color: rgba(0, 102, 255, 0.1) !important;
}

.badge.text-primary {
    color: $secondary !important;
}

// Responsive adjustments
@media (max-width: 991px) {
    .section-custom {
        padding: 60px 0;
    }

    .fs-36 {
        font-size: 1.75rem;
    }

    #landing-navbar {
        .navbar-collapse {
            margin-top: 1rem;
        }
    }
}

@media (max-width: 767px) {
    .section-custom {
        padding: 40px 0;
    }

    .fs-36 {
        font-size: 1.5rem;
    }

    .fs-24 {
        font-size: 1.25rem;
    }
}
