/* Landing Page Styles - Luppy PWA */
/* Matches Flutter app's guest mode UI exactly */

:root {
    --primary-purple: #51149F;
    --primary-green: #00A76A;
    --care-color: #00A76A;
    --bg-light: #F5F5F5;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --yellow-color: #FFD700;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: #EEEEEE;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* Landing Page Container */
#landing-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    position: relative;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* ============================================ */
/* App Header (like Flutter's FindPetScreen) */
/* ============================================ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: white;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
}

.header-btn:hover {
    color: var(--primary-purple);
}

/* ============================================ */
/* Filter Bar */
/* ============================================ */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 12px 16px;
    background: white;
}

.filter-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--care-color);
}

.filter-tag {
    cursor: pointer;
}

.filter-dot {
    color: var(--care-color);
}

.filter-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-icon-btn:hover {
    color: var(--primary-purple);
}

/* ============================================ */
/* Main Content */
/* ============================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
}

/* ============================================ */
/* Provider List */
/* ============================================ */
.provider-list {
    padding: 0;
}

/* ============================================ */
/* Provider Card (matches Flutter's PetSitterItem) */
/* ============================================ */
.provider-card {
    display: flex;
    padding: 10px;
    margin: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.provider-card:hover {
    background-color: #F8F8F8;
}

.provider-card:last-child {
    border-bottom: none;
}

/* Avatar Column */
.provider-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.provider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.provider-rating .star {
    width: 14px;
    height: 14px;
    color: var(--yellow-color);
}

.provider-rating .rating-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--yellow-color);
}

.provider-price {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Info Column */
.provider-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 10px;
    min-width: 0;
}

.provider-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-bio {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.provider-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 5px;
}

.provider-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================ */
/* Skeleton Loading */
/* ============================================ */
.provider-card.skeleton {
    pointer-events: none;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-rating {
    width: 40px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-name {
    width: 120px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-bio {
    width: 100%;
    height: 42px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-location {
    width: 100px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================ */
/* Bottom Tab Bar (like Flutter's HomeTabScreen) */
/* ============================================ */
.bottom-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    transition: color 0.2s ease;
}

.tab-item:hover {
    color: black;
}

.tab-item.active {
    color: black;
}

/* Active state - let SVG attributes define appearance */
.tab-item.active .tab-icon {
}
/* Search icon uses stroke only, no fill */
.tab-item.active .tab-icon-solid[stroke-width="4"] {
    fill: none;
}

/* Icon version toggle - hide outline when active, show solid */
.tab-icon-outline {
    display: block;
}

.tab-icon-solid {
    display: none;
}

.tab-item.active .tab-icon-outline {
    display: none;
}

.tab-item.active .tab-icon-solid {
    display: block;
}

.tab-icon {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
}

/* ============================================ */
/* Auth Modal */
/* ============================================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.visible {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================ */
/* Auth Buttons */
/* ============================================ */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.auth-btn.google {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.auth-btn.google:hover {
    background: #F5F5F5;
}

.auth-btn.apple {
    background: #000;
    color: white;
}

.auth-btn.apple:hover {
    background: #333;
}

.auth-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================ */
/* Empty State */
/* ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #9E9E9E;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================ */
/* Guest Limit Banner */
/* ============================================ */
.guest-limit-banner {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #F8F4FF 0%, #FFF 100%);
    border-top: 1px solid var(--border-color);
}

.guest-limit-banner p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guest-limit-banner button {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
}

.guest-limit-banner button:hover {
    text-decoration: underline;
}

/* ============================================ */
/* Flutter Loading Overlay */
/* ============================================ */
.flutter-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.flutter-loading-overlay.visible {
    display: flex;
}

/* Hide landing page when Flutter is ready */
#landing-page.hidden {
    display: none;
}

/* ============================================ */
/* Responsive */
/* ============================================ */
@media (min-width: 600px) {
    #landing-page {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}
/* Pet Card Styles */
.pet-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 16px;
}

.pet-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-info {
    padding: 12px;
}

.pet-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.pet-breed, .pet-age {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

/* Auth Form Styles */
.auth-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    font-size: 14px;
    color: #999;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}

.auth-separator span {
    padding: 0 10px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    background: #FAFAFA;
}

.auth-input:focus {
    border-color: var(--primary-purple);
    outline: none;
    background: white;
}

.email-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.email-btn {
    justify-content: center;
    flex: 1;
    background: var(--primary-purple);
    color: white;
    cursor: pointer;
    font-size: 15px;
    padding: 12px;
}

.email-btn.outline {
    background: white;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
}

.email-btn:hover {
    opacity: 0.9;
}
