/* HINGGO DATING PLATFORM - COMPLETE STYLING */

:root {
    --primary: #FF6B6B;
    --secondary: #FFA500;
    --tertiary: #6C63FF;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --gray: #95a5a6;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.brand-text p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* MOBILE - Logo responsive */
@media (max-width: 768px) {
    .logo-wrapper {
        gap: 10px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 22px;
    }
    
    .brand-text p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 8px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-text h1 {
        font-size: 18px;
    }
    
    .brand-text p {
        font-size: 9px;
    }
}

.navbar-menu {
    display: flex;
    gap: 15px;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #e85555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* FEATURES */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h3 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* CTA SECTION */
.cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

/* AUTH PAGES */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-box h1 {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-box h2 {
    text-align: center;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 30px;
}

.auth-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(255,107,107,0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ALERTS */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* DASHBOARD */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: var(--light);
}

.sidebar {
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    padding: 12px 15px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary);
    color: var(--white);
}

.main-content {
    padding: 30px;
}

/* PROFILE GRID */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-photo {
    position: relative;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-photo.blurred img {
    filter: blur(8px);
}

.profile-info {
    padding: 15px;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

.profile-meta {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

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

.profile-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-like {
    background: var(--primary);
    color: var(--white);
}

.btn-message {
    background: var(--tertiary);
    color: var(--white);
}

/* MESSAGES */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 600px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.conversations-list {
    background: var(--light);
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.conversation-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.conversation-item:hover {
    background: var(--white);
}

.conversation-item.active {
    background: var(--primary);
    color: var(--white);
}

.chat-window {
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.sent {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
}

.message.received {
    background: var(--light);
    color: var(--dark);
    align-self: flex-start;
}

.message.chatbot {
    background: var(--tertiary);
    color: var(--white);
    align-self: flex-start;
    font-size: 12px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .conversations-list {
        display: none;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .navbar-brand p {
        display: none;
    }
}

/* Loading animation */
.spinner {
    border: 3px solid var(--light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
