/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom right, #fdf2f8, #ffffff, #f3e8ff);
    min-height: 100vh;
    color: #1f2937;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    width: 32px;
    height: 32px;
    color: #ec4899;
    fill: currentColor;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #ec4899, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: none;
    gap: 1.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: #4b5563;
}

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

.nav-btn:hover {
    background: #f3f4f6;
}

.nav-btn.active {
    background: #fce7f3;
    color: #db2777;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

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

.profile-btn:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.profile-text {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    .profile-text {
        display: inline;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: white;
    color: #ec4899;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.profile-card-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    color: white;
}

.profile-card-overlay h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.profile-card-overlay p {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.9;
    font-size: 0.875rem;
}

.profile-card-body {
    padding: 1rem;
}

.profile-card-tag {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #fce7f3;
    color: #db2777;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.interest-tag {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.profile-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-like, .btn-message {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-like {
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
}

.btn-like:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.btn-message {
    border: 2px solid #ec4899;
    color: #ec4899;
    background: white;
}

.btn-message:hover {
    background: #fdf2f8;
}

/* Profile Detail */
.back-btn {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    color: #ec4899;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #fdf2f8;
    border-radius: 0.5rem;
}

.profile-card-detail {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 896px;
    margin: 0 auto;
}

.profile-detail-image {
    position: relative;
    width: 100%;
    height: 384px;
    overflow: hidden;
}

.profile-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-detail-body {
    padding: 2rem;
}

.profile-detail-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.profile-detail-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profile-detail-header p {
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.profile-detail-section {
    margin-bottom: 1.5rem;
}

.profile-detail-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.profile-detail-section p {
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
}

.profile-detail-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag-large {
    padding: 0.5rem 1rem;
    background: #f3e8ff;
    color: #7c3aed;
    border-radius: 9999px;
    font-weight: 500;
}

.profile-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-large {
    flex: 1;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-send-like {
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
}

.btn-send-like:hover {
    box-shadow: 0 10px 15px rgba(236, 72, 153, 0.4);
}

.btn-start-chat {
    border: 2px solid #ec4899;
    color: #ec4899;
    background: white;
}

.btn-start-chat:hover {
    background: #fdf2f8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: #ec4899;
    margin: 0 auto 1rem;
}

.empty-state h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #4b5563;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, #ec4899, #9333ea);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-btn:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .heart-icon {
    width: 28px;
    height: 28px;
    color: #ec4899;
}

.footer-logo h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-col p {
    color: #9ca3af;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

