/* * Location: /home/letsdate/www/css/style.css 
 * Design: Clean, safe, appealing to female demographic
 * Updated: 2025-11-29 - Mobile Optimizations
 */

:root {
    --primary-color: #E57373; /* Soft Coral */
    --secondary-color: #81C784; /* Soft Green/Teal */
    --bg-color: #FFF5F7; /* Very light pinkish white */
    --text-dark: #455A64;
    --text-light: #78909C;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(229, 115, 115, 0.15);
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px; 
    position: relative;
    z-index: 1000;
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 100%; 
    width: auto;
    max-height: 120px; 
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a.btn-primary { color: var(--white); }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    header { height: 80px; padding: 0.5rem 1rem; }
    .logo-image { max-height: 60px; }
    .hamburger { display: block; }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 999;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav-links.active { display: flex; }

    .nav-links a {
        margin: 0.5rem 0;
        padding: 0.8rem 1rem; /* Larger touch target */
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        font-size: 1.1rem; /* Readable font size */
    }
    .nav-links a:last-child { border-bottom: none; }
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 115, 115, 0.3);
}

.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- MAIN LAYOUT --- */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    main { padding: 1rem; }
}

/* --- HERO & CARDS --- */
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #2c3e50; }

.card-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
    max-width: 400px; 
}

.profile-card { max-width: 800px; margin: 2rem auto; }

/* --- FORMS --- */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-light); }

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input.form-control, select.form-control { height: 48px; }
.form-control:focus { border-color: var(--primary-color); outline: none; }

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23E57373'%3E%3Cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.95l-4.243-4.243L4.343 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.8em auto;
    padding-right: 2.5em;
    cursor: pointer;
}

.checkbox-group { display: flex; flex-direction: column; gap: 0.8rem; }
.checkbox-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color); cursor: pointer; }

/* --- PROFILE EDITING --- */
.profile-image-section { text-align: center; margin-bottom: 2rem; }
.current-image {
    width: 150px; height: 150px; object-fit: cover;
    border-radius: 50%; border: 4px solid var(--primary-color);
    margin-bottom: 1rem; transition: all 0.3s ease;
}
.section-divider { border-top: 1px solid #eee; margin: 2.5rem 0; }
.age-range-group { display: flex; gap: 1rem; }
.age-range-group > div { flex: 1; }

.upload-area {
    text-align: center; padding: 2rem; border: 2px dashed #ddd;
    border-radius: 12px; transition: border-color 0.3s;
}
.upload-area:hover { border-color: var(--primary-color); }

.photo-gallery { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.photo-item { position: relative; width: 150px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.photo-item img { width: 100%; height: 150px; object-fit: cover; }
.photo-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.6); padding: 5px; display: flex; justify-content: space-between;
}
.photo-btn { background: none; border: none; color: white; cursor: pointer; font-size: 0.8rem; padding: 2px 5px; }
.photo-btn:hover { color: var(--primary-color); }
.primary-badge {
    position: absolute; top: 5px; right: 5px; background: var(--secondary-color);
    color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: bold;
}

/* --- BROWSE MEMBERS GRID --- */
.browse-header { text-align: center; margin-bottom: 2rem; }
.member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem; padding: 1rem 0;
}
.member-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.member-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(229, 115, 115, 0.2); }
.member-photo-area { height: 280px; overflow: hidden; position: relative; background-color: #f0f0f0; }
.member-photo { width: 100%; height: 100%; object-fit: cover; }
.member-details { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.member-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; color: #2c3e50; }
.member-location { color: #7f8c8d; font-size: 0.95rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 5px; }
.member-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.badge { font-size: 0.8rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; color: white; }
.member-bio {
    font-size: 0.9rem; color: #555; margin-bottom: 1.5rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { margin-top: auto; display: flex; gap: 10px; }

/* Browse Card Buttons */
.btn-view, .btn-message-card {
    flex: 1; text-align: center; padding: 0.8rem; border-radius: 30px;
    text-decoration: none; font-weight: 600; transition: all 0.2s; cursor: pointer; font-size: 0.9rem;
}
.btn-view { background: #fff; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-view:hover { background: var(--primary-color); color: white; }
.btn-message-card { background: var(--secondary-color); border: 2px solid var(--secondary-color); color: white; }
.btn-message-card:hover { background: #66bb6a; border-color: #66bb6a; }

/* --- VIEW PROFILE PAGE --- */
.profile-container {
    max-width: 1000px; margin: 2rem auto; display: grid; grid-template-columns: 300px 1fr;
    gap: 2rem; align-items: start;
}
.profile-sidebar {
    background: white; padding: 1.5rem; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center;
}
.main-photo {
    width: 100%; height: 300px; object-fit: cover; border-radius: 8px;
    margin-bottom: 1rem; border: 1px solid #eee;
}
.action-btn {
    display: block; width: 100%; padding: 0.8rem; margin-bottom: 0.5rem;
    border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.2s;
    border: none; cursor: pointer;
}
.btn-message { background-color: var(--primary-color); color: white; }
.btn-message:hover { background-color: #d65b5b; transform: translateY(-2px); }
.btn-back { background-color: transparent; border: 2px solid #ddd; color: #666; }
.btn-back:hover { border-color: #bbb; }
.profile-content { background: white; padding: 2.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.profile-header { border-bottom: 1px solid #eee; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.profile-name { font-size: 2rem; color: #2c3e50; margin-bottom: 0.5rem; }
.profile-meta { color: #7f8c8d; font-size: 1.1rem; display: flex; gap: 15px; align-items: center; }
.section-title {
    font-size: 1.2rem; font-weight: 700; color: var(--primary-color);
    margin-bottom: 0.8rem; margin-top: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.info-item label { display: block; font-size: 0.85rem; color: #999; margin-bottom: 3px; }
.info-item span { font-size: 1rem; color: #333; font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 1rem; }
.gallery-img {
    width: 100%; height: 100px; object-fit: cover; border-radius: 6px;
    cursor: pointer; transition: opacity 0.2s;
}
.gallery-img:hover { opacity: 0.8; }

@media (max-width: 768px) {
    .profile-container { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .profile-sidebar { width: 100%; margin-bottom: 1rem; }
    .main-photo { height: 350px; }
    .profile-content { padding: 1.5rem; width: 100%; }
}

/* --- CHAT MODAL (BROWSE & PROFILE) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: white; width: 90%; max-width: 500px; height: 80vh;
    border-radius: 12px; display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 1rem; background: var(--primary-color); color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 1.1rem; }
.close-modal { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.chat-history {
    flex: 1; padding: 1rem; overflow-y: auto; background: #f9f9f9;
    display: flex; flex-direction: column; gap: 10px;
}

.message-bubble {
    max-width: 75%; padding: 10px 14px; border-radius: 15px; font-size: 0.95rem; line-height: 1.4;
}
.msg-sent { align-self: flex-end; background: var(--primary-color); color: white; border-bottom-right-radius: 2px; }
.msg-received { align-self: flex-start; background: #e0e0e0; color: #333; border-bottom-left-radius: 2px; }

.chat-input-area {
    padding: 1rem; border-top: 1px solid #eee; background: white; display: flex; gap: 10px;
}
.chat-input {
    flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; background: #fff;
}
.chat-input:focus { border-color: var(--primary-color); }
.btn-send {
    background: var(--primary-color); color: white; border: none; padding: 0 20px;
    border-radius: 20px; cursor: pointer; font-weight: bold;
}

/* MOBILE FIX FOR CHAT MODAL */
@media (max-width: 768px) {
    .modal-content {
        width: 100%; height: 100%; max-width: none; border-radius: 0;
        top: 0; left: 0;
    }
    .modal-header { padding: 1.2rem 1rem; }
    .chat-input-area { padding: 0.8rem; }
    .chat-input { font-size: 16px; /* Prevent zoom on iOS */ }
}

/* --- FOOTER --- */
#cookie-popup {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--white); padding: 1.5rem; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; z-index: 1000;
    width: 90%; max-width: 500px; text-align: center; border-left: 5px solid var(--primary-color);
}

footer {
    background: white; text-align: center; padding: 2rem;
    margin-top: auto; font-size: 0.9rem; color: var(--text-light);
}

.no-members { text-align: center; grid-column: 1 / -1; padding: 4rem; color: #888; }