/*
 * ===============================================
 * Unified Stylesheet for FastMatch
 * - Professionally ordered and de-duplicated
 * - Mobile-first responsive approach
 * - Includes all performance fixes
 * ===============================================
 */

/* ===== 1. Imports ===== */
@import url('../../css/variables.css');

/* ===== 2. Font Definitions (Essential for Performance) ===== */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-regular.woff2') format('woff2'); /* Adjust path if needed */
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Fixes text render delay */
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-regular.woff2') format('woff2'); /* Adjust path if needed */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yesteryear';
  src: url('../fonts/yesteryear-regular.woff2') format('woff2'); /* Adjust path if needed */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== 3. CSS Variables ===== */
:root {
    /* IMPORTANT: Copy the contents of your old variables.css file here */
    --color-primary: #ff0081;
    --color-primary-hover: #e20473;
    --color-secondary: #233350;
    --color-secondary-hover: #1a2640;
    --color-light-gray: #f8f9fa;
    --color-dark-gray: #6c757d;
    --color-white: #ffffff;
    --color-black: #212529;
}

/* ===== 4. Base & Global Styles ===== */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: #ffffff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    height: 100%;
}

#wrap {
    min-height: 100%;
}

/* ===== 5. Layout Shift Fixes ===== */
.chat-with-us {
    /* Default height for stacked (mobile) view */
    min-height: 1126px;
}

/* ===== 6. Component Styles ===== */

/* --- Preloader --- */
.preloader-wrapper {
    width: 100%;
    text-align: center;
    padding-top: 200px;
    height: 100%;
}
.loader {
    width: 60px;
    aspect-ratio: 1;
    background: linear-gradient(#dc1818 0 0) bottom/100% 0% no-repeat #ccc;
    -webkit-mask:
        radial-gradient(circle at 60% 65%, #000 62%, #0000 65%) top left,
        radial-gradient(circle at 40% 65%, #000 62%, #0000 65%) top right,
        linear-gradient(to bottom left, #000 42%,#0000 43%) bottom left ,
        linear-gradient(to bottom right,#000 42%,#0000 43%) bottom right;
    -webkit-mask-size: 50% 50%;
    -webkit-mask-repeat: no-repeat;
    animation: l19 2s infinite linear;
}
@keyframes l19 {
    90%,100% { background-size:100% 100% }
}

/* --- Forms --- */
.label-1 {
    font-size: 13px;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
.form-select, .form-control {
    border-color: #e2e5ec;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}
.form-select:focus, .form-control:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 129, 0.15);
}
.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* --- Buttons --- */
.btn {
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 13px 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
}
.btnPrimary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
}
.btnPrimary:hover, .btnPrimary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #ffffff;
}
.btnSecondary {
    background-color: var(--color-secondary);
    color: #ffffff;
    border: 1px solid var(--color-secondary);
}
.btnSecondary:hover, .btnSecondary:focus {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: #ffffff;
}

/* --- Navigation --- */
.inNavbar {
    padding-top: 0;
    padding-bottom: 0;
}
.inLogo img {
    max-height: 50px; /* Mobile first */
}
.inNavbar ul li a {
    padding: 15px 10px; /* Mobile first */
}
.inNavbar ul .inHeadBtnLogin, .inNavbar ul .inHeadBtnReg {
   /* Your existing styles */
    color: white;
    background: var(--color-primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;

  
}

/* --- Sliders --- */
.inSlider {
    position: relative !important; /* Mobile first */
}

/* --- Other Components --- */
/* (Add all other component styles like .inSuccessStory, .inFeaturedGroom, etc. here) */


/* ===== 7. Utility Classes ===== */
.font-arizona { font-family: 'Yesteryear', cursive; }
.font-nunito { font-family: 'Nunito', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }
.colorPrimary { color: var(--color-primary) !important; }
.colorSecondary { color: var(--color-secondary) !important; }


/* ===== 8. Responsive Media Queries (Mobile-First) ===== */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .inMemberDetCard .card-body i {
        font-size: 20px; /* From old 767px query */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .inLogo img {
        max-height: 70px;
    }
    .inSlider {
        position: absolute !important;
    }
    .inMemOverLap {
        padding-top: 50px;
        padding-bottom: 270px;
    }
    .inMemberProfile .mt-minus-220 {
        margin-top: -240px;
    }
    section.chat-with-us {
        min-height: 643px; /* Height for side-by-side desktop view */
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .inAfterNav .nav-item .nav-link {
        padding: 15px 10px;
        color: white;
        font-weight: 700;
        font-size: 12px;
        font-family: 'Nunito', sans-serif;
        letter-spacing: 0.3px;
    }
    .inAfterNav .nav-item .nav-link:hover {
        background-color: var(--color-primary-hover);
    }
}