﻿/* Add to wwwroot/css/site.css */

/* ✅ FIXED: Use Bootstrap grid PROPERLY - NO FLEX OVERRIDE */
.hero-section {
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* ✅ REMOVE .hero-content flex - LET BOOTSTRAP WORK */
.hero-section .container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-left {
    padding-right: 2rem;
    padding-left: 5rem; /* ✅ INNER LEFT SPACING */
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    height: fit-content;
}

/* ✅ ZERO GAP IMAGES */
.hero-images {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.hero-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    max-width: 100%;
}

#hero-img-1 {
    max-height: 250px;
    height: auto;
}

#hero-img-2 {
    max-height: 240px;
    height: 180px;
    object-fit: cover;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #495057;
}

    .hero-description strong {
        color: #2c3e50;
        font-weight: 700;
    }

/* ✅ BUTTON VISIBLE */
.hero-work-btn {
    display: inline-block !important;
    background: linear-gradient(45deg, #2c3e50, #34495e) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(44,62,80,0.4) !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

    .hero-work-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(44,62,80,0.6) !important;
        color: white !important;
    }

/* Responsive */
@media (max-width: 992px) {
    .hero-right {
        align-items: center;
    }

    .text-end {
        text-align: center !important;
    }
}

    /* Add to TOP of site.css */
    body {
        background-color: #e3f2fd !important; /* Light blue */
        /* OR lighter: #f0f8ff (AliceBlue) */
        /* OR custom: #e8f4fd */
    }
/* Hide hero when login card is present */
.card.shadow-lg.border-0 ~ .hero-section,
.py-5.min-vh-100 ~ .hero-section {
    display: none !important;
}

main.main-content-hidden:has(.card.shadow-lg) {
    display: block !important;
}
/* Hide hero when login card exists */
body:has(.card-header.bg-primary) .hero-section {
    display: none !important;
}

body:has(.card-header.bg-primary) main {
    display: block !important;
}

    /* Leather trading vibe */
    main {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin: 20px auto;
        max-width: 1200px;
        padding: 30px;
    }

    html {
        font-size: 14px;
    }

    @media (min-width: 768px) {
        html {
            font-size: 16px;
        }
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    html {
        position: relative;
        min-height: 100%;
    }

    body {
        margin-bottom: 60px;
    }

    .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
        color: var(--bs-secondary-color);
        text-align: end;
    }

    .form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
        text-align: start;
    }

    .fixed-table {
        table-layout: fixed;
    }

        .fixed-table th,
        .fixed-table td {
            vertical-align: middle;
            padding: 0.25rem;
        }

        .fixed-table select,
        .fixed-table input {
            width: 100%;
        }

        .fixed-table th,
        .fixed-table td {
            border: 2px solid red !important;
        }
}
