/* 
 * Matrimonial Browse Profiles - Mobile First CSS
 * File: assets/browse-style.css
 */

:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --text-dark: #1d3557;
    --text-light: #457b9d;
    --border-color: #e0e0e0;
    --success-color: #2a9d8f;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}


/* Header */
.browse-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.browse-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.browse-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

/* Profile Card */
.profile-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Profile Photo */
.profile-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 300px;
    background: var(--bg-light);
    overflow: hidden;
}

.profile-photo,
.profile-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999;
}

/* Blurred Photo */
.profile-photo-wrapper.blurred .profile-photo {
    filter: blur(15px);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    z-index: 2;
}

/* Profile Info */
.profile-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
}

.detail-item svg {
    flex-shrink: 0;
}

/* Quick Info Badges */
.profile-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-info-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

/* View Profile Button */
.btn-view-profile {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.btn-view-profile:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-view-profile svg {
    transition: transform 0.3s ease;
}

.btn-view-profile:hover svg {
    transform: translateX(4px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 20px 0;
}

.btn-load-more {
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-load-more.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-load-more.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(230, 57, 70, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* No Profiles */
.no-profiles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-profiles svg {
    color: #ccc;
    margin-bottom: 20px;
}

.no-profiles h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.no-profiles p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* Tablet Styles */
@media (min-width: 576px) {
    .browse-container {
        padding: 20px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .browse-header {
        padding: 25px;
    }
    
    .browse-title {
        font-size: 30px;
    }
    
    .browse-subtitle {
        font-size: 15px;
    }
    
    .profile-name {
        font-size: 19px;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .browse-container {
        max-width: 1200px;
        padding: 30px 20px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .browse-header {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .browse-title {
        font-size: 34px;
    }
    
    .browse-subtitle {
        font-size: 16px;
    }
    
    .profile-info {
        padding: 18px;
    }
    
    .profile-name {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .detail-item {
        font-size: 14px;
    }
    
    .quick-info-badge {
        font-size: 13px;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .browse-container {
        max-width: 1400px;
    }
}

/* Animation for new cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeInUp 0.4s ease;
}

/* Print Styles */
@media print {
    .browse-container {
        background: white;
    }
    
    .browse-header {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
    
    .profile-card {
        break-inside: avoid;
    }
    
    .btn-view-profile,
    .btn-load-more {
        display: none;
    }
}

.profile-photo-wrapper img{
    border: none;
    border-radius: 10px !important;
    height: 300px !important;
    width: 100% !important;
}