/* =============================================
   Dating Club – Modern Dating Site Style
   Warm, elegant, fully responsive.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(145deg, #fef9f2 0%, #fff5eb 100%);
    --card-bg:     #ffffff;
    --primary:     #df6a6f;
    --primary-dark:#c23f45;
    --secondary:   #2c3e4e;
    --gold:        #d4af7a;
    --gold-light:  #f3e5c9;
    --text-dark:   #1e2a36;
    --text-muted:  #6c7a89;
    --border-light:#f0e6dc;
    --shadow-sm:   0 12px 28px rgba(0,0,0,0.06);
    --shadow-md:   0 20px 38px rgba(0,0,0,0.1);
    --radius-card: 32px;
    --radius-btn:  48px;
    --transition:  all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body:has(.dc-auth-wrap, .dc-dashboard, .dc-swipe-wrap, .dc-matches-wrap, .dc-setup-wrap) {
    background: var(--bg-gradient);
    min-height: 100vh;
}

/* ---------- GLOBAL TYPOGRAPHY ---------- */
.dc-auth-wrap, .dc-setup-wrap, .dc-dashboard,
.dc-swipe-wrap, .dc-matches-wrap {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, .dc-hero h2, .dc-stat-num {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ---------- AUTH PAGE ---------- */
.dc-auth-wrap {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.dc-auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.dc-auth-card:hover {
    transform: translateY(-4px);
}

.dc-auth-logo {
    font-size: 3.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.dc-auth-card h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.dc-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dc-auth-card input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: var(--transition);
}

.dc-auth-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(223,106,111,0.15);
}

.dc-auth-card button[type="submit"] {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.dc-auth-card button[type="submit"]:hover {
    background: var(--primary);
    transform: scale(0.98);
}

.dc-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.dc-auth-divider::before,
.dc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* ---------- SETUP (PROFILE CREATION) ---------- */
.dc-setup-wrap {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dc-setup-steps {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.dc-step {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    border-radius: 60px;
    background: #e9dfd3;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.dc-step.active {
    background: var(--secondary);
    color: white;
}

.dc-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.dc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

.dc-card input, .dc-card select, .dc-card textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: 60px;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    transition: var(--transition);
}

.dc-card textarea {
    border-radius: 24px;
    resize: vertical;
}

.dc-card input:focus, .dc-card select:focus, .dc-card textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(223,106,111,0.1);
}

.dc-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 28px;
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    background: #fefaf5;
    margin: 0.8rem 0;
    transition: var(--transition);
}

.dc-upload-area:hover {
    border-color: var(--gold);
    background: #fff7ed;
}

.dc-error {
    color: #c23f45;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.dc-age-range {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
}

.dc-age-range input {
    margin: 0;
}

button[type="submit"], .dc-card button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.8rem;
}

button[type="submit"]:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ---------- DASHBOARD ---------- */
.dc-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.dc-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #3e5b6e 100%);
    border-radius: 40px;
    padding: 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dc-hero::after {
    content: '❤️';
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 120px;
    opacity: 0.08;
    pointer-events: none;
}

.dc-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.dc-hero h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.dc-hero p {
    color: var(--gold-light);
    font-size: 0.9rem;
}

.dc-stats-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dc-stat {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 1.2rem 1rem;
    text-align: center;
    flex: 1;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
}

.dc-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.dc-action-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dc-btn {
    padding: 1rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.95rem;
    flex: 1;
}

.dc-btn-primary {
    background: var(--primary);
    color: white;
}

.dc-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.dc-btn-secondary {
    background: var(--secondary);
    color: white;
}

.dc-btn-secondary:hover {
    background: #1f2f3b;
    transform: translateY(-3px);
}

.dc-btn-danger {
    background: #c0392b;
    color: white;
}

.dc-profile-card .dc-info-row {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.dc-compatible-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}

.dc-compatible-card {
    background: #fffaf5;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
    flex: 1 1 150px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.dc-compatible-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.dc-compat-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.6rem;
    border: 2px solid var(--gold);
}

.dc-swipe-mini {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.dc-mini-like, .dc-mini-dislike {
    border: none;
    border-radius: 60px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

.dc-mini-like {
    background: var(--primary);
    color: white;
}

.dc-mini-dislike {
    background: #b0bec5;
    color: white;
}

/* ---------- SWIPE PAGE ---------- */
.dc-swipe-wrap {
    max-width: 520px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dc-swipe-card {
    background: var(--card-bg);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.8rem;
}

.dc-swipe-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.dc-swipe-info {
    padding: 1.5rem;
}

.dc-swipe-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.dc-swipe-actions {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

.dc-btn-like, .dc-btn-dislike {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.dc-btn-like {
    background: var(--primary);
    color: white;
}

.dc-btn-dislike {
    background: #94a3b8;
    color: white;
}

.dc-btn-like:hover, .dc-btn-dislike:hover {
    transform: scale(1.1);
}

/* ---------- MATCHES & CHAT ---------- */
.dc-matches-wrap {
    max-width: 780px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dc-match-sidebar {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.dc-match-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
}

.dc-match-item:hover, .dc-match-item.active {
    background: var(--gold-light);
}

.dc-match-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

/*.dc-chat {*/
/*    background: var(--card-bg);*/
/*    border-radius: 32px;*/
/*    overflow: hidden;*/
/*    box-shadow: var(--shadow-sm);*/
/*}*/

/*.dc-chat-header {*/
/*    background: var(--secondary);*/
/*    color: white;*/
/*    padding: 1rem 1.5rem;*/
/*    font-weight: 600;*/
/*}*/

/*.dc-chat-messages {*/
/*    height: 380px;*/
/*    overflow-y: auto;*/
/*    padding: 1.2rem;*/
/*    background: #fefbf7;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 0.8rem;*/
/*}*/

/*.dc-bubble {*/
/*    max-width: 75%;*/
/*    padding: 0.7rem 1.2rem;*/
/*    border-radius: 24px;*/
/*    font-size: 0.9rem;*/
/*    line-height: 1.4;*/
/*}*/

/*.dc-bubble.dc-me {*/
/*    background: var(--primary);*/
/*    color: white;*/
/*    align-self: flex-end;*/
/*    border-bottom-right-radius: 6px;*/
/*}*/

/*.dc-bubble.dc-other {*/
/*    background: #eae2d7;*/
/*    color: var(--text-dark);*/
/*    align-self: flex-start;*/
/*    border-bottom-left-radius: 6px;*/
/*}*/

/*.dc-chat-form {*/
/*    display: flex;*/
/*    gap: 0.6rem;*/
/*    padding: 1rem;*/
/*    border-top: 1px solid var(--border-light);*/
/*    flex-direction:column;*/
/*}*/

/*.dc-chat-form input {*/
/*    flex: 1;*/
/*    padding: 0.8rem 1rem;*/
/*    border-radius: 60px;*/
/*    border: 1px solid var(--border-light);*/
/*    font-size: 0.9rem;*/
/*}*/

/*.dc-chat-form button {*/
/*    background: var(--secondary);*/
/*    border: none;*/
/*    padding: 16px 1.5rem;*/
/*    border-radius: 60px;*/
/*    color: white;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*}*/

/* =============================================
   CHAT BUBBLES – FIXED ALIGNMENT
   ============================================= */
.dc-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fefbf7;
    height: 380px;
    overflow-y: auto;
}

/* Base bubble style */
.dc-bubble {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 22px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* MY message (right side) */
.dc-bubble.dc-me {
    background: #df6a6f;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    margin-left: auto;
    margin-right: 0;
}

/* OTHER person's message (left side) */
.dc-bubble.dc-other {
    background: #eae2d7;
    color: #1e2a36;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    margin-left: 0;
    margin-right: auto;
}

/* Timestamp inside bubble */
.dc-bubble-time {
    font-size: 10px;
    margin-top: 6px;
    opacity: 0.7;
    text-align: right;
}

.dc-bubble.dc-other .dc-bubble-time {
    text-align: left;
    color: #6c7a89;
}

.dc-bubble.dc-me .dc-bubble-time {
    color: rgba(255,255,255,0.8);
}

/* Empty chat placeholder */
.dc-empty-chat {
    text-align: center;
    color: #6c7a89;
    padding: 30px;
    font-style: italic;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .dc-stats-row { flex-direction: column; }
    .dc-action-row { flex-direction: column; }
    .dc-swipe-photo { height: 280px; }
    .dc-auth-card { padding: 1.8rem; }
}