/* =========================================
   1. VARIABLES & BASE SETUP
   ========================================= */
:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --success: #10b981;
    --radius-lg: 20px;
    --radius-md: 12px;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* =========================================
   2. BUTTONS & GLOBAL UI
   ========================================= */
.btn-primary {
    background: var(--accent); 
    color: white; 
    border: none;
    padding: 16px 36px; 
    border-radius: 100px; 
    font-weight: 700; 
    font-size: 1rem;
    cursor: pointer; 
    transition: var(--transition); 
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px); 
}

.view-btn { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

.view-btn:hover { 
    text-decoration: underline; 
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.main-nav {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0;
    padding: 24px 0;
    z-index: 100;
}

.center-nav {
    justify-content: center;
}

.profile-nav {
    background-color: var(--primary);
    position: relative;
}

.nav-content {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 35px;
    width: auto;
    transition: var(--transition);
}

.site-logo:hover {
    opacity: 0.8;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 60vh; 
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(15,23,42,0.5), rgba(15,23,42,0.9)); 
}

.hero-content { 
    position: relative; 
    z-index: 5; 
    text-align: center; 
    width: 100%; 
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
}

.hero h1 { 
    color: white; 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    margin-bottom: 16px; 
}

.hero p { 
    color: #cbd5e1; 
    font-size: 1.15rem; 
    margin-bottom: 48px; 
}

/* =========================================
   5. SEARCH GLASS & DROPDOWNS
   ========================================= */
.search-glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 10px;
    display: flex; 
    align-items: center;
    max-width: 1000px; 
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.input-group { 
    flex: 2; 
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    color: white; 
}

.input-group i { 
    color: #94a3b8; 
    margin-right: 12px; 
    font-size: 1.3rem; 
}

.input-group input { 
    background: transparent; 
    border: none; 
    color: white; 
    width: 100%; 
    outline: none; 
    font-size: 1rem; 
}

.input-group input::placeholder { 
    color: #cbd5e1; 
}

.divider { 
    width: 1px; 
    height: 30px; 
    background: rgba(255,255,255,0.2); 
}

.custom-select { 
    flex: 1.2; 
    position: relative; 
    color: white; 
    cursor: pointer; 
    user-select: none; 
}

.select-trigger { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 20px; 
}

.options-menu {
    position: absolute; 
    top: 60px; 
    left: 0; 
    right: 0;
    background: #1e293b; 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; 
    display: none; 
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.options-menu.show { 
    display: block; 
}

.option { 
    padding: 12px 20px; 
    transition: 0.2s; 
}

.option:hover { 
    background: var(--accent); 
}

/* =========================================
   6. DIRECTORY GRID & CARDS
   ========================================= */
.section-header { 
    margin: 80px 0 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.section-header h2 { 
    font-size: 2rem; 
    font-weight: 700; 
}

.result-count { 
    color: var(--muted); 
    font-weight: 600; 
    font-size: 1rem; 
}

.breeder-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 32px; 
    padding-bottom: 80px;
}

.card {
    background: var(--card); 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow); 
    border: 1px solid #e2e8f0; 
    transition: var(--transition);
    display: flex; 
    flex-direction: column;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
    border-color: #cbd5e1; 
}

.card-img-wrapper { 
    height: 240px; 
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); 
    position: relative; 
    overflow: hidden;
}

.card-img-wrapper::after {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
}

.card-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.card:hover .card-image { 
    transform: scale(1.05); 
}

/* Category Tags */
.tag {
    position: absolute; 
    top: 16px; 
    left: 16px; 
    z-index: 10;
    padding: 6px 14px; 
    border-radius: 100px; 
    font-size: 0.75rem; 
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-breeder { background: rgba(255,255,255,0.95); color: var(--primary); backdrop-filter: blur(4px); }
.tag-trainer { background: #fee2e2; color: #991b1b; }
.tag-seller  { background: #e0e7ff; color: #3730a3; }

.card-content { 
    padding: 24px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.service-icon { 
    margin-right: 8px; 
    font-size: 1.2rem; 
    vertical-align: middle; 
    color: var(--accent); 
}

.card-content h3 { 
    font-size: 1.25rem; 
    margin-bottom: 8px; 
    font-weight: 700; 
}

.focus-text { 
    color: var(--text); 
    font-size: 0.95rem; 
    margin-bottom: 16px; 
    font-weight: 600; 
}

.loc { 
    color: var(--muted); 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    margin-bottom: 20px; 
}

.card-footer {
    margin-top: auto; 
    padding-top: 16px; 
    border-top: 1px solid #f1f5f9;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.verified { 
    color: var(--success); 
    font-weight: 700; 
    font-size: 0.85rem; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.unverified { 
    color: var(--muted); 
    font-size: 0.85rem; 
}

/* =========================================
   7. PROFILE PAGE SPECIFICS
   ========================================= */
.profile-container { 
    max-width: 800px; 
    margin: 40px auto; 
    background: white; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}

.profile-hero { 
    position: relative;
    width: 100%;
    height: 350px; /* Desktop Height */
    border-radius: 16px;
    overflow: hidden; /* This perfectly rounds the corners and hides any overflow */
    background-color: #ffffff; /* Adds a clean white background for transparent logos */
    margin-bottom: 20px;
}

.profile-hero img { 
    width: 100%;
    height: 100%;
    object-fit: cover; 
	object-position: center;
}

.profile-content { 
    padding: 40px; 
}

.back-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--muted); 
    text-decoration: none; 
    font-weight: 600; 
    margin-top: 40px; 
}

.back-btn:hover { 
    color: var(--primary); 
}

.bottom-nav-container {
    text-align: center;
    margin: 40px 0 80px 0;
}

.back-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 14px 28px;
    background: var(--card);
    border-radius: 100px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.back-btn-bottom:hover {
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

/* --- Profile Specification Grid --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text);
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* WhatsApp Floating/Action Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    max-width: 320px;
    margin: 15px auto 0 auto;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    position: relative;
}

/* The Pulse Animation */
.pulse-wa {
    animation: pulse-green 2s infinite;
}

.contact-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

/* =========================================
   8. JOIN NETWORK SECTION
   ========================================= */
.join-network-section {
    padding: 60px 0;
    background-color: var(--bg);
}

.join-card {
    background: var(--primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.join-text h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.join-text p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--primary);
    padding: 60px 0 30px;
    margin-top: 80px;
    text-align: center;
    border-top: 4px solid var(--accent);
}

.footer-logo {
    height: 25px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer strong {
    color: #cbd5e1;
}

.copyright {
    color: #64748b;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    margin-top: 24px;
}

/* =========================================
   10. MOBILE RESPONSIVENESS (Max 768px)
   ========================================= */
@media (max-width: 768px) {
    .hero-logo {
        height: auto;
        max-width: 90%;
        max-height: 55px;
        margin-top: 40px; 
        margin-bottom: 16px;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }

    .search-glass {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 16px;
        gap: 12px;
    }

    .divider { display: none; }

    .input-group, .custom-select {
        width: 100%;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-primary {
        width: 100%;
        margin-top: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 50px 0 30px;
    }

    .join-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .join-text h2 { font-size: 1.5rem; }
}

/* =========================================
   11. APPLICATION FORM (STRICTLY SCOPED)
   ========================================= */
.apply-page { background-color: var(--bg) !important; }

.pro-form { 
    background: var(--card); 
    padding: 40px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow); 
    text-align: left; 
    max-width: 700px;
    margin: 40px auto;
    border: 1px solid #e2e8f0;
}

/* Header margin pushes down past the absolute navigation */
.apply-page .form-header { text-align: center; margin-bottom: 40px; margin-top: 100px; }
.apply-page .form-header h1 { font-size: 2.2rem; color: var(--text); }
.apply-page .form-header p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }

.pro-form .form-section { margin-bottom: 40px; }
.pro-form .form-section h2 { 
    font-size: 1.3rem; 
    margin-bottom: 20px; 
    color: var(--text); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border-bottom: 2px solid var(--bg); 
    padding-bottom: 10px; 
}
.pro-form .form-section h2 i { color: var(--accent); }

.pro-form .input-group { 
    margin-bottom: 20px; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-start !important; 
}

.pro-form .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .pro-form .input-row { grid-template-columns: 1fr; } }

.pro-form label { 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin-bottom: 8px; 
    color: var(--text); 
    display: block; 
}

/* Scoped inputs for the application form */
.pro-form input[type="text"], 
.pro-form input[type="tel"], 
.pro-form input[type="email"],
.pro-form select,
.pro-form textarea { 
    width: 100%; 
    padding: 14px; 
    border: 2px solid #e2e8f0; 
    border-radius: var(--radius-md); 
    background: white !important; 
    color: var(--text) !important;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.pro-form input:focus, 
.pro-form select:focus, 
.pro-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.pro-form .category-selector { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
}

.pro-form .cat-radio input { display: none !important; }

.pro-form .cat-card { 
    border: 2px solid #e2e8f0; 
    border-radius: var(--radius-md); 
    padding: 20px 10px; 
    text-align: center; 
    cursor: pointer; 
    transition: var(--transition);
    color: var(--muted);
}

.pro-form .cat-card i { font-size: 2rem; display: block; margin-bottom: 10px; }

.pro-form .cat-radio input:checked + .cat-card { 
    border-color: var(--accent); 
    background-color: #eff6ff; 
    color: var(--accent); 
    font-weight: 700;
}

/* --- Premium File Upload Styling --- */
.pro-form input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--text) !important;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.pro-form input[type="file"]:hover {
    border-color: var(--accent);
    background: #f1f5f9 !important;
}

.pro-form input[type="file"]::file-selector-button {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pro-form input[type="file"]::file-selector-button:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--accent);
}

/* Submit & Disclaimers */
.pro-form .submit-btn { 
    width: 100%; 
    background: var(--accent); 
    color: white; 
    border: none; 
    padding: 18px; 
    font-weight: 700; 
    font-size: 1.1rem;
    border-radius: var(--radius-md); 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 20px;
}

.pro-form .submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.pro-form .form-disclaimer { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 15px; }

.pro-form .hidden { display: none; }
.apply-page .site-logo {
    filter: invert(7%) sepia(27%) saturate(1210%) hue-rotate(186deg) brightness(95%) contrast(96%);
}
/* --- Profile Bottom Back Button --- */
.bottom-nav-container {
    text-align: center;
    margin: 40px 0 60px 0;
}

.back-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn-bottom:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

#loadMoreBtn {
    background-color: #ffffff;
    color: #3b82f6; 
    border: 2px solid #3b82f6;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px; /* Makes it a sleek pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

#loadMoreBtn:hover {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* --- Floating Action Button (FAB) --- */
#floatingListBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1e293b; /* Dark, premium navy color */
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Deep shadow to lift it off the page */
    z-index: 9999; /* Guarantees it stays on top of all other cards and images */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#floatingListBtn i {
    font-size: 1.25rem;
    color: #3b82f6; /* Blue accent for the icon */
}

/* Hover Effect for Desktop */
#floatingListBtn:hover {
    background-color: #0f172a;
    transform: translateY(-4px); /* Gently floats up when hovered */
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Mobile Adjustments (Keeps it out of the way on small screens) */
@media (max-width: 768px) {
    #floatingListBtn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

#floatingListBtn.hide-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Stops it from being clickable when invisible */
    transform: translateY(20px); /* Makes it gently slide down as it fades */
}
/* --- Premium Share Button --- */
.share-btn-custom {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin: 0 auto 20px auto; /* Centers the button perfectly */
    padding: 14px 24px; 
    border-radius: 14px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 1rem;
    border: 1px solid #bfdbfe; 
    background: #eff6ff; 
    color: #2563eb; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    width: fit-content; /* Magic trick: Sizes perfectly to the text without squishing! */
    white-space: nowrap; /* Forces text to stay on one line */
}

.share-btn-custom:hover {
    background: #dbeafe; 
    transform: translateY(-2px);
}

/* --- Mobile Phone Adjustments --- */
@media (max-width: 768px) {
    .profile-hero {
        height: 220px !important; /* Shrinks the ENTIRE box on phones, killing the gray gap */
    }
    
    .share-btn-custom {
        width: 100%; /* Makes the share button full-width on mobile to match the WhatsApp button */
        /* OR: Change to "width: fit-content;" if you still want it small and centered on mobile */
    }
}