/**
 * Dating Core - Premium Dating App Design System
 * Production-Ready UI/UX inspired by Tinder, Bumble, Hinge
 *
 * @package DatingCore
 * @version 3.0
 * @author Senior Product Designer
 */

/* ==========================================================================
   FONTS - Premium Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap');

/* ==========================================================================
   CSS DESIGN TOKENS - Premium Dating App
   ========================================================================== */
:root {
    /* Brand Colors - Warm & Inviting */
    --dc-primary: #FD297B;
    --dc-primary-dark: #E91E63;
    --dc-primary-light: #FF5A92;
    --dc-secondary: #FF655B;
    --dc-accent: #FF9D00;
    --dc-gold: #FFD700;
    
    /* Gradients - Signature Brand Gradients */
    --dc-gradient-primary: linear-gradient(135deg, #FD297B 0%, #FF655B 100%);
    --dc-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --dc-gradient-premium: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
    --dc-gradient-super: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    --dc-gradient-dark: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    
    /* Action Colors */
    --dc-like: #00D46A;
    --dc-like-glow: rgba(0, 212, 106, 0.3);
    --dc-nope: #FF4458;
    --dc-nope-glow: rgba(255, 68, 88, 0.3);
    --dc-superlike: #00D4FF;
    --dc-superlike-glow: rgba(0, 212, 255, 0.3);
    --dc-boost: #A855F7;
    
    /* Semantic Colors */
    --dc-success: #10B981;
    --dc-warning: #F59E0B;
    --dc-error: #EF4444;
    --dc-info: #3B82F6;
    
    /* Neutrals - Modern Gray Scale */
    --dc-white: #FFFFFF;
    --dc-gray-50: #FAFAFA;
    --dc-gray-100: #F5F5F5;
    --dc-gray-200: #E5E5E5;
    --dc-gray-300: #D4D4D4;
    --dc-gray-400: #A3A3A3;
    --dc-gray-500: #737373;
    --dc-gray-600: #525252;
    --dc-gray-700: #404040;
    --dc-gray-800: #262626;
    --dc-gray-900: #171717;
    --dc-black: #000000;
    
    /* Typography */
    --dc-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --dc-font-display: 'DM Serif Display', Georgia, serif;
    
    /* Font Sizes - Mobile First */
    --dc-text-xs: 0.75rem;
    --dc-text-sm: 0.875rem;
    --dc-text-base: 1rem;
    --dc-text-lg: 1.125rem;
    --dc-text-xl: 1.25rem;
    --dc-text-2xl: 1.5rem;
    --dc-text-3xl: 1.875rem;
    --dc-text-4xl: 2.25rem;
    --dc-text-5xl: 3rem;
    
    /* Spacing */
    --dc-space-1: 0.25rem;
    --dc-space-2: 0.5rem;
    --dc-space-3: 0.75rem;
    --dc-space-4: 1rem;
    --dc-space-5: 1.25rem;
    --dc-space-6: 1.5rem;
    --dc-space-8: 2rem;
    --dc-space-10: 2.5rem;
    --dc-space-12: 3rem;
    --dc-space-16: 4rem;
    --dc-space-20: 5rem;
    
    /* Border Radius */
    --dc-radius-sm: 8px;
    --dc-radius-md: 12px;
    --dc-radius-lg: 16px;
    --dc-radius-xl: 24px;
    --dc-radius-2xl: 32px;
    --dc-radius-full: 9999px;
    
    /* Shadows */
    --dc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --dc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --dc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --dc-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --dc-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --dc-shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    --dc-shadow-button: 0 4px 14px rgba(253,41,123,0.35);
    
    /* Transitions */
    --dc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dc-transition-fast: 150ms var(--dc-ease-out);
    --dc-transition-base: 250ms var(--dc-ease-out);
    --dc-transition-slow: 400ms var(--dc-ease-out);
    
    /* Z-Index Scale */
    --dc-z-dropdown: 100;
    --dc-z-sticky: 200;
    --dc-z-modal: 500;
    --dc-z-toast: 600;
    --dc-z-tooltip: 700;
    
    /* Mobile Safe Areas */
    --dc-safe-top: env(safe-area-inset-top, 0px);
    --dc-safe-bottom: env(safe-area-inset-bottom, 0px);
    --dc-nav-height: 64px;
    --dc-bottom-nav-height: 80px;
}

/* ==========================================================================
   BASE STYLES - Website First (Not App)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base container - Website style with normal flow */
.dc-app,
.dc-discover-container,
.dc-matches-container,
.dc-messages-container,
.dc-chat-container,
.dating-core-profile-edit,
.dating-core-profile,
.dating-core-dashboard,
.dc-dashboard {
    font-family: var(--dc-font-primary);
    color: var(--dc-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: transparent;
    min-height: auto;
    padding-bottom: 0;
}

/* Website Container Wrapper */
.dc-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--dc-space-6) var(--dc-space-4);
}

/* Hide mobile-only elements by default */
.dc-bottom-nav,
.dc-header {
    display: none !important;
}

/* ==========================================================================
   WEBSITE NAVIGATION - Horizontal Nav Bar
   ========================================================================== */
.dc-page-nav {
    background: var(--dc-white);
    border-radius: var(--dc-radius-lg);
    box-shadow: var(--dc-shadow-card);
    padding: var(--dc-space-3) var(--dc-space-4);
    margin-bottom: var(--dc-space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--dc-space-2);
    justify-content: center;
    align-items: center;
}

.dc-page-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--dc-gray-600);
    text-decoration: none;
    border-radius: var(--dc-radius-md);
    font-weight: 600;
    font-size: var(--dc-text-sm);
    transition: all var(--dc-transition-fast);
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
}

.dc-page-nav-item:hover {
    background: var(--dc-gray-100);
    color: var(--dc-gray-900);
}

.dc-page-nav-item.active {
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
}

.dc-page-nav-item .dc-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--dc-error);
    color: var(--dc-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--dc-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.dc-page-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   LEGACY MOBILE NAV (Hidden by default)
   ========================================================================== */
.dc-nav-item {
    display: none;
}

.dc-nav-badge {
    display: none;
}

/* ==========================================================================
   DISCOVER PAGE - Card Stack (Website Style)
   ========================================================================== */
.dc-discover-container {
    padding: 0;
    max-width: 450px;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

/* Card Stack Container */
.dc-card-stack {
    position: relative;
    min-height: 500px;
    max-height: 600px;
    perspective: 1000px;
    margin-bottom: var(--dc-space-6);
}

/* Profile Card - Main Swipe Card */
.dc-profile-card {
    position: absolute;
    inset: 0;
    border-radius: var(--dc-radius-xl);
    overflow: hidden;
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-card);
    cursor: grab;
    user-select: none;
    touch-action: none;
    will-change: transform;
    transition: box-shadow var(--dc-transition-base);
}

.dc-profile-card:active {
    cursor: grabbing;
}

.dc-profile-card:nth-child(2) {
    transform: scale(0.95) translateY(12px);
    filter: brightness(0.97);
}

.dc-profile-card:nth-child(3) {
    transform: scale(0.9) translateY(24px);
    filter: brightness(0.94);
}

.dc-profile-card:nth-child(n+4) {
    opacity: 0;
    pointer-events: none;
}

/* Card Image */
.dc-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--dc-gray-200);
}

.dc-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 30%,
        transparent 60%
    );
}

/* Photo Navigation Dots */
.dc-photo-indicators {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 5;
}

.dc-photo-dot {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    transition: background var(--dc-transition-fast);
}

.dc-photo-dot.active {
    background: var(--dc-white);
}

/* Card Info Overlay */
.dc-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--dc-space-6);
    color: var(--dc-white);
    z-index: 2;
}

.dc-card-name {
    margin: 0;
    font-size: var(--dc-text-3xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--dc-space-2);
}

.dc-card-age {
    font-weight: 400;
}

.dc-verified-badge {
    width: 24px;
    height: 24px;
    background: var(--dc-info);
    border-radius: var(--dc-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-white);
    font-size: 14px;
}

.dc-card-details {
    margin-top: var(--dc-space-2);
    display: flex;
    flex-wrap: wrap;
    gap: var(--dc-space-2);
}

.dc-card-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--dc-text-sm);
    opacity: 0.9;
}

.dc-card-bio {
    margin-top: var(--dc-space-3);
    font-size: var(--dc-text-sm);
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Interest Tags */
.dc-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dc-space-2);
    margin-top: var(--dc-space-3);
}

.dc-interest-tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--dc-radius-full);
    font-size: var(--dc-text-xs);
    font-weight: 500;
    color: var(--dc-white);
}

/* Swipe Indicators */
.dc-swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 24px;
    border: 4px solid;
    border-radius: var(--dc-radius-lg);
    font-size: var(--dc-text-2xl);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.1s ease;
}

.dc-swipe-like {
    right: 24px;
    border-color: var(--dc-like);
    color: var(--dc-like);
    transform: translateY(-50%) rotate(-12deg);
}

.dc-swipe-nope {
    left: 24px;
    border-color: var(--dc-nope);
    color: var(--dc-nope);
    transform: translateY(-50%) rotate(12deg);
}

.dc-swipe-super {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--dc-superlike);
    color: var(--dc-superlike);
}

/* ==========================================================================
   ACTION BUTTONS - Premium Floating Buttons
   ========================================================================== */
.dc-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--dc-space-5);
    padding: var(--dc-space-6) 0;
}

.dc-action-btn {
    border-radius: var(--dc-radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dc-transition-fast);
    box-shadow: var(--dc-shadow-lg);
}

.dc-action-btn:hover {
    transform: scale(1.1);
}

.dc-action-btn:active {
    transform: scale(0.95);
}

/* Small Buttons - Rewind, Boost */
.dc-action-btn-sm {
    width: 48px;
    height: 48px;
    background: var(--dc-white);
}

.dc-action-btn-sm .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Large Buttons - Nope, Like */
.dc-action-btn-lg {
    width: 64px;
    height: 64px;
    background: var(--dc-white);
}

.dc-action-btn-lg .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Skip/Nope Button */
.dc-skip-btn {
    color: var(--dc-nope);
}

.dc-skip-btn:hover {
    background: var(--dc-nope);
    color: var(--dc-white);
    box-shadow: 0 8px 25px var(--dc-nope-glow);
}

/* Super Like Button */
.dc-super-like-btn {
    width: 52px;
    height: 52px;
    background: var(--dc-white);
    color: var(--dc-superlike);
}

.dc-super-like-btn:hover {
    background: var(--dc-superlike);
    color: var(--dc-white);
    box-shadow: 0 8px 25px var(--dc-superlike-glow);
}

/* Like Button */
.dc-like-btn {
    color: var(--dc-like);
}

.dc-like-btn:hover {
    background: var(--dc-like);
    color: var(--dc-white);
    box-shadow: 0 8px 25px var(--dc-like-glow);
}

/* Boost Button */
.dc-boost-btn {
    color: var(--dc-boost);
}

.dc-boost-btn:hover {
    background: var(--dc-boost);
    color: var(--dc-white);
}

/* Rewind Button */
.dc-rewind-btn {
    color: var(--dc-accent);
}

/* ==========================================================================
   MATCHES PAGE - Modern Grid
   ========================================================================== */
.dc-matches-container {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.dc-matches-header {
    margin-bottom: var(--dc-space-6);
}

.dc-matches-header h1 {
    font-family: var(--dc-font-display);
    font-size: var(--dc-text-3xl);
    font-weight: 400;
    color: var(--dc-gray-900);
    margin: 0 0 var(--dc-space-1);
}

.dc-matches-header p {
    color: var(--dc-gray-500);
    font-size: var(--dc-text-sm);
    margin: 0;
}

/* Likes You Section - Premium Feature */
.dc-likes-section {
    margin-bottom: var(--dc-space-8);
}

.dc-section-title {
    font-size: var(--dc-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dc-gray-500);
    margin-bottom: var(--dc-space-4);
}

.dc-likes-preview {
    background: var(--dc-gradient-gold);
    border-radius: var(--dc-radius-xl);
    padding: var(--dc-space-5);
    display: flex;
    align-items: center;
    gap: var(--dc-space-4);
    box-shadow: var(--dc-shadow-card);
    cursor: pointer;
    transition: transform var(--dc-transition-fast);
}

.dc-likes-preview:hover {
    transform: translateY(-2px);
}

.dc-likes-avatars {
    display: flex;
    margin-left: -8px;
}

.dc-likes-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--dc-radius-full);
    border: 3px solid var(--dc-white);
    margin-left: -12px;
    filter: blur(8px);
    object-fit: cover;
}

.dc-likes-avatar:first-child {
    margin-left: 0;
}

.dc-likes-info {
    flex: 1;
}

.dc-likes-count {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    color: var(--dc-gray-900);
}

.dc-likes-text {
    font-size: var(--dc-text-sm);
    color: var(--dc-gray-700);
}

.dc-likes-badge {
    background: var(--dc-white);
    padding: 8px 16px;
    border-radius: var(--dc-radius-full);
    font-size: var(--dc-text-sm);
    font-weight: 600;
    color: var(--dc-gray-900);
}

/* New Matches - Horizontal Scroll */
.dc-new-matches-scroll {
    display: flex;
    gap: var(--dc-space-4);
    overflow-x: auto;
    padding: var(--dc-space-2) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dc-new-matches-scroll::-webkit-scrollbar {
    display: none;
}

.dc-new-match-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dc-space-2);
    text-decoration: none;
}

.dc-match-avatar-ring {
    width: 76px;
    height: 76px;
    padding: 3px;
    background: var(--dc-gradient-primary);
    border-radius: var(--dc-radius-full);
    transition: transform var(--dc-transition-fast);
}

.dc-new-match-item:hover .dc-match-avatar-ring {
    transform: scale(1.05);
}

.dc-match-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: var(--dc-radius-full);
    border: 3px solid var(--dc-white);
    object-fit: cover;
}

.dc-match-name {
    font-size: var(--dc-text-sm);
    font-weight: 600;
    color: var(--dc-gray-900);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Messages List */
.dc-messages-section {
    margin-top: var(--dc-space-8);
}

.dc-matches-list {
    display: flex;
    flex-direction: column;
    gap: var(--dc-space-3);
}

.dc-match-card {
    display: flex;
    align-items: center;
    gap: var(--dc-space-4);
    padding: var(--dc-space-4);
    background: var(--dc-white);
    border-radius: var(--dc-radius-lg);
    text-decoration: none;
    transition: all var(--dc-transition-fast);
    box-shadow: var(--dc-shadow-sm);
}

.dc-match-card:hover {
    transform: translateX(4px);
    box-shadow: var(--dc-shadow-md);
}

.dc-match-card.unread {
    background: linear-gradient(135deg, rgba(253,41,123,0.05) 0%, rgba(255,101,91,0.05) 100%);
}

.dc-match-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--dc-radius-full);
    position: relative;
    flex-shrink: 0;
}

.dc-match-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--dc-radius-full);
    object-fit: cover;
}

/* Online Status Indicator */
.dc-online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: var(--dc-radius-full);
    border: 2px solid var(--dc-white);
    background: var(--dc-gray-400);
}

.dc-online-status.online {
    background: var(--dc-success);
}

.dc-online-status.recently {
    background: var(--dc-accent);
}

.dc-match-info {
    flex: 1;
    min-width: 0;
}

.dc-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dc-match-info h4 {
    margin: 0;
    font-size: var(--dc-text-base);
    font-weight: 600;
    color: var(--dc-gray-900);
}

.dc-match-time {
    font-size: var(--dc-text-xs);
    color: var(--dc-gray-400);
}

.dc-match-preview {
    font-size: var(--dc-text-sm);
    color: var(--dc-gray-500);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-match-card.unread .dc-match-preview {
    color: var(--dc-gray-900);
    font-weight: 500;
}

.dc-unread-badge {
    min-width: 22px;
    height: 22px;
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
    font-size: var(--dc-text-xs);
    font-weight: 700;
    border-radius: var(--dc-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ==========================================================================
   CHAT PAGE - WhatsApp/iMessage Style
   ========================================================================== */
.dc-chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--dc-gray-100);
}

/* Chat Header */
.dc-chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--dc-nav-height);
    background: var(--dc-white);
    display: flex;
    align-items: center;
    gap: var(--dc-space-3);
    padding: 0 var(--dc-space-4);
    padding-top: var(--dc-safe-top);
    z-index: var(--dc-z-sticky);
    box-shadow: var(--dc-shadow-sm);
}

.dc-chat-back {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--dc-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-chat-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--dc-space-3);
}

.dc-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--dc-radius-full);
    object-fit: cover;
}

.dc-chat-user-info h3 {
    margin: 0;
    font-size: var(--dc-text-base);
    font-weight: 600;
    color: var(--dc-gray-900);
}

.dc-chat-status {
    font-size: var(--dc-text-xs);
    color: var(--dc-success);
}

.dc-chat-actions {
    display: flex;
    gap: var(--dc-space-2);
}

.dc-chat-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--dc-gray-600);
    cursor: pointer;
    border-radius: var(--dc-radius-full);
    transition: background var(--dc-transition-fast);
}

.dc-chat-action-btn:hover {
    background: var(--dc-gray-100);
    color: var(--dc-primary);
}

/* Messages Container */
.dc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--dc-nav-height) + var(--dc-space-4)) var(--dc-space-4) var(--dc-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--dc-space-3);
}

/* Message Bubbles */
.dc-message {
    max-width: 75%;
    animation: messageSlide 0.3s var(--dc-ease-out);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.dc-message-sent {
    align-self: flex-end;
}

.dc-message-received {
    align-self: flex-start;
}

.dc-message-bubble {
    padding: var(--dc-space-3) var(--dc-space-4);
    border-radius: var(--dc-radius-xl);
    font-size: var(--dc-text-sm);
    line-height: 1.5;
    position: relative;
}

.dc-message-sent .dc-message-bubble {
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
    border-bottom-right-radius: var(--dc-radius-sm);
}

.dc-message-received .dc-message-bubble {
    background: var(--dc-white);
    color: var(--dc-gray-900);
    border-bottom-left-radius: var(--dc-radius-sm);
    box-shadow: var(--dc-shadow-sm);
}

.dc-message-time {
    font-size: var(--dc-text-xs);
    margin-top: var(--dc-space-1);
    opacity: 0.7;
}

.dc-message-sent .dc-message-time {
    text-align: right;
    color: var(--dc-white);
}

.dc-message-received .dc-message-time {
    color: var(--dc-gray-400);
}

/* Typing Indicator */
.dc-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--dc-space-3) var(--dc-space-4);
    background: var(--dc-white);
    border-radius: var(--dc-radius-xl);
    width: fit-content;
    box-shadow: var(--dc-shadow-sm);
}

.dc-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--dc-gray-400);
    border-radius: var(--dc-radius-full);
    animation: typing 1.4s infinite;
}

.dc-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dc-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Chat Input */
.dc-chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dc-white);
    padding: var(--dc-space-3) var(--dc-space-4);
    padding-bottom: calc(var(--dc-space-3) + var(--dc-safe-bottom));
    display: flex;
    align-items: flex-end;
    gap: var(--dc-space-3);
    border-top: 1px solid var(--dc-gray-200);
}

.dc-chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--dc-gray-100);
    border-radius: var(--dc-radius-xl);
    padding: var(--dc-space-2) var(--dc-space-4);
    gap: var(--dc-space-2);
}

.dc-chat-input {
    flex: 1;
    border: none;
    background: none;
    font-size: var(--dc-text-base);
    font-family: var(--dc-font-primary);
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    color: var(--dc-gray-900);
}

.dc-chat-input:focus {
    outline: none;
}

.dc-chat-input::placeholder {
    color: var(--dc-gray-400);
}

.dc-attach-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--dc-gray-500);
    cursor: pointer;
    border-radius: var(--dc-radius-full);
}

.dc-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
    border-radius: var(--dc-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dc-transition-fast);
    box-shadow: var(--dc-shadow-button);
}

.dc-send-btn:hover {
    transform: scale(1.05);
}

.dc-send-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   PROFILE PAGE - Modern Card Layout
   ========================================================================== */
.dating-core-profile-edit,
.dating-core-profile {
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* Profile Header Card */
.dc-profile-header-card {
    background: var(--dc-white);
    border-radius: var(--dc-radius-xl);
    padding: var(--dc-space-6);
    text-align: center;
    margin-bottom: var(--dc-space-4);
    box-shadow: var(--dc-shadow-card);
}

.dc-profile-photo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--dc-space-4);
}

.dc-profile-photo {
    width: 100%;
    height: 100%;
    border-radius: var(--dc-radius-full);
    object-fit: cover;
    border: 4px solid var(--dc-white);
    box-shadow: var(--dc-shadow-lg);
}

.dc-profile-edit-photo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
    border: none;
    border-radius: var(--dc-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--dc-shadow-md);
}

.dc-profile-name {
    font-size: var(--dc-text-2xl);
    font-weight: 700;
    color: var(--dc-gray-900);
    margin: 0 0 var(--dc-space-2);
}

.dc-profile-meta {
    display: flex;
    justify-content: center;
    gap: var(--dc-space-4);
    color: var(--dc-gray-500);
    font-size: var(--dc-text-sm);
}

/* Profile Completion */
.dc-profile-completion {
    margin-top: var(--dc-space-4);
    padding-top: var(--dc-space-4);
    border-top: 1px solid var(--dc-gray-200);
}

.dc-completion-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--dc-space-2);
    font-size: var(--dc-text-sm);
    color: var(--dc-gray-600);
}

.dc-completion-bar {
    height: 6px;
    background: var(--dc-gray-200);
    border-radius: var(--dc-radius-full);
    overflow: hidden;
}

.dc-completion-progress {
    height: 100%;
    background: var(--dc-gradient-primary);
    border-radius: var(--dc-radius-full);
    transition: width 0.5s var(--dc-ease-out);
}

/* Profile Form Sections */
.dc-profile-section {
    background: var(--dc-white);
    border-radius: var(--dc-radius-xl);
    padding: var(--dc-space-5);
    margin-bottom: var(--dc-space-4);
    box-shadow: var(--dc-shadow-card);
}

.dc-profile-section h3 {
    font-size: var(--dc-text-base);
    font-weight: 700;
    color: var(--dc-gray-900);
    margin: 0 0 var(--dc-space-4);
    display: flex;
    align-items: center;
    gap: var(--dc-space-2);
}

/* Form Elements */
.dc-form-group {
    margin-bottom: var(--dc-space-4);
}

.dc-form-group:last-child {
    margin-bottom: 0;
}

.dc-form-label {
    display: block;
    font-size: var(--dc-text-sm);
    font-weight: 600;
    color: var(--dc-gray-700);
    margin-bottom: var(--dc-space-2);
}

.dc-form-input,
.dc-form-select,
.dc-form-textarea {
    width: 100%;
    padding: var(--dc-space-3) var(--dc-space-4);
    border: 2px solid var(--dc-gray-200);
    border-radius: var(--dc-radius-lg);
    font-size: var(--dc-text-base);
    font-family: var(--dc-font-primary);
    color: var(--dc-gray-900);
    background: var(--dc-white);
    transition: border-color var(--dc-transition-fast), box-shadow var(--dc-transition-fast);
}

.dc-form-input:focus,
.dc-form-select:focus,
.dc-form-textarea:focus {
    outline: none;
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 4px rgba(253,41,123,0.15);
}

.dc-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Interest Tags Selection */
.dc-interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dc-space-2);
}

.dc-interest-option {
    padding: var(--dc-space-2) var(--dc-space-4);
    background: var(--dc-gray-100);
    border: 2px solid transparent;
    border-radius: var(--dc-radius-full);
    font-size: var(--dc-text-sm);
    font-weight: 500;
    color: var(--dc-gray-600);
    cursor: pointer;
    transition: all var(--dc-transition-fast);
}

.dc-interest-option:hover {
    background: var(--dc-gray-200);
}

.dc-interest-option.selected {
    background: linear-gradient(135deg, rgba(253,41,123,0.1) 0%, rgba(255,101,91,0.1) 100%);
    border-color: var(--dc-primary);
    color: var(--dc-primary);
}

/* Photo Gallery */
.dc-photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dc-space-3);
}

.dc-photo-slot {
    aspect-ratio: 1;
    border-radius: var(--dc-radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--dc-gray-100);
    border: 2px dashed var(--dc-gray-300);
    cursor: pointer;
    transition: all var(--dc-transition-fast);
}

.dc-photo-slot:hover {
    border-color: var(--dc-primary);
    background: rgba(253,41,123,0.05);
}

.dc-photo-slot.has-photo {
    border: none;
}

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

.dc-photo-add {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-gray-400);
    font-size: 28px;
}

.dc-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.6);
    color: var(--dc-white);
    border: none;
    border-radius: var(--dc-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dc-transition-fast);
}

.dc-photo-slot:hover .dc-photo-remove {
    opacity: 1;
}

/* ==========================================================================
   VIDEO CALL UI - Fullscreen Modern
   ========================================================================== */
.dc-video-call {
    position: fixed;
    inset: 0;
    background: var(--dc-black);
    z-index: var(--dc-z-modal);
    display: flex;
    flex-direction: column;
}

/* Remote Video */
.dc-remote-video {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

/* Local Video PIP */
.dc-local-video {
    position: absolute;
    top: calc(var(--dc-safe-top) + 20px);
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: var(--dc-radius-lg);
    object-fit: cover;
    box-shadow: var(--dc-shadow-2xl);
    border: 3px solid rgba(255,255,255,0.3);
}

/* Call Info Overlay */
.dc-call-info {
    position: absolute;
    top: calc(var(--dc-safe-top) + 20px);
    left: 20px;
    color: var(--dc-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dc-call-name {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    margin: 0 0 4px;
}

.dc-call-timer {
    font-size: var(--dc-text-sm);
    opacity: 0.9;
}

/* Call Controls */
.dc-call-controls {
    position: absolute;
    bottom: calc(var(--dc-safe-bottom) + 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--dc-space-6);
}

.dc-call-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--dc-radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dc-transition-fast);
    backdrop-filter: blur(10px);
}

.dc-call-btn-default {
    background: rgba(255,255,255,0.2);
    color: var(--dc-white);
}

.dc-call-btn-default:hover {
    background: rgba(255,255,255,0.3);
}

.dc-call-btn-default.active {
    background: var(--dc-white);
    color: var(--dc-gray-900);
}

.dc-call-btn-end {
    width: 70px;
    height: 70px;
    background: var(--dc-error);
    color: var(--dc-white);
}

.dc-call-btn-end:hover {
    background: #DC2626;
    transform: scale(1.05);
}

.dc-call-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   EMPTY STATES - Friendly & Encouraging
   ========================================================================== */
.dc-empty-state {
    text-align: center;
    padding: var(--dc-space-12) var(--dc-space-6);
}

.dc-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--dc-space-6);
    background: linear-gradient(135deg, rgba(253,41,123,0.1) 0%, rgba(255,101,91,0.1) 100%);
    border-radius: var(--dc-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.dc-empty-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--dc-primary);
}

.dc-empty-state h3 {
    font-size: var(--dc-text-xl);
    font-weight: 700;
    color: var(--dc-gray-900);
    margin: 0 0 var(--dc-space-2);
}

.dc-empty-state p {
    font-size: var(--dc-text-base);
    color: var(--dc-gray-500);
    margin: 0 0 var(--dc-space-6);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   LOADING STATES - Skeleton & Spinners
   ========================================================================== */
.dc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--dc-space-12);
}

.dc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dc-gray-200);
    border-top-color: var(--dc-primary);
    border-radius: var(--dc-radius-full);
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--dc-space-4);
}

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

.dc-loading-text {
    font-size: var(--dc-text-sm);
    color: var(--dc-gray-500);
}

/* Skeleton Loading */
.dc-skeleton {
    background: linear-gradient(90deg, var(--dc-gray-200) 25%, var(--dc-gray-100) 50%, var(--dc-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--dc-radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dc-skeleton-circle {
    border-radius: var(--dc-radius-full);
}

.dc-skeleton-card {
    height: 400px;
    border-radius: var(--dc-radius-xl);
}

/* ==========================================================================
   BUTTONS - Primary & Secondary
   ========================================================================== */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dc-space-2);
    padding: var(--dc-space-3) var(--dc-space-6);
    border: none;
    border-radius: var(--dc-radius-full);
    font-size: var(--dc-text-base);
    font-weight: 600;
    font-family: var(--dc-font-primary);
    cursor: pointer;
    transition: all var(--dc-transition-fast);
    text-decoration: none;
}

.dc-btn-primary {
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
    box-shadow: var(--dc-shadow-button);
}

.dc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253,41,123,0.4);
}

.dc-btn-secondary {
    background: var(--dc-gray-100);
    color: var(--dc-gray-700);
}

.dc-btn-secondary:hover {
    background: var(--dc-gray-200);
}

.dc-btn-outline {
    background: transparent;
    border: 2px solid var(--dc-gray-300);
    color: var(--dc-gray-700);
}

.dc-btn-outline:hover {
    border-color: var(--dc-primary);
    color: var(--dc-primary);
}

.dc-btn-block {
    width: 100%;
}

.dc-btn-lg {
    padding: var(--dc-space-4) var(--dc-space-8);
    font-size: var(--dc-text-lg);
}

/* ==========================================================================
   TOASTS & NOTIFICATIONS
   ========================================================================== */
.dc-toast {
    position: fixed;
    bottom: calc(var(--dc-bottom-nav-height) + var(--dc-space-4));
    left: 50%;
    transform: translateX(-50%);
    padding: var(--dc-space-3) var(--dc-space-6);
    background: var(--dc-gray-900);
    color: var(--dc-white);
    border-radius: var(--dc-radius-full);
    font-size: var(--dc-text-sm);
    font-weight: 500;
    box-shadow: var(--dc-shadow-xl);
    z-index: var(--dc-z-toast);
    animation: toastIn 0.3s var(--dc-ease-out);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.dc-toast-success {
    background: var(--dc-success);
}

.dc-toast-error {
    background: var(--dc-error);
}

/* ==========================================================================
   MATCH MODAL - Celebration
   ========================================================================== */
.dc-match-modal {
    position: fixed;
    inset: 0;
    background: var(--dc-gradient-primary);
    z-index: var(--dc-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
}

.dc-match-content {
    text-align: center;
    color: var(--dc-white);
    padding: var(--dc-space-8);
    animation: bounceIn 0.6s var(--dc-ease-bounce);
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
}

.dc-match-title {
    font-family: var(--dc-font-display);
    font-size: var(--dc-text-5xl);
    margin: 0 0 var(--dc-space-2);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.dc-match-subtitle {
    font-size: var(--dc-text-lg);
    opacity: 0.9;
    margin: 0 0 var(--dc-space-8);
}

.dc-match-photos {
    display: flex;
    justify-content: center;
    margin-bottom: var(--dc-space-8);
}

.dc-match-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--dc-radius-full);
    object-fit: cover;
    border: 4px solid var(--dc-white);
    box-shadow: var(--dc-shadow-2xl);
}

.dc-match-photo:last-child {
    margin-left: -24px;
}

.dc-match-actions {
    display: flex;
    flex-direction: column;
    gap: var(--dc-space-3);
    max-width: 280px;
    margin: 0 auto;
}

.dc-match-actions .dc-btn-primary {
    background: var(--dc-white);
    color: var(--dc-primary);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.dc-match-actions .dc-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--dc-white);
}

/* ==========================================================================
   RESPONSIVE - Tablet & Desktop
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --dc-bottom-nav-height: 0px;
    }
    
    .dc-bottom-nav {
        display: none;
    }
    
    .dc-discover-container {
        max-width: 450px;
    }
    
    .dc-card-stack {
        max-height: 600px;
    }
    
    .dc-matches-container,
    .dating-core-profile-edit {
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .dc-matches-container {
        max-width: 800px;
    }
    
    .dc-photo-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --dc-gray-50: #171717;
        --dc-gray-100: #1F1F1F;
        --dc-gray-200: #262626;
        --dc-gray-300: #404040;
        --dc-gray-400: #525252;
        --dc-gray-500: #737373;
        --dc-gray-600: #A3A3A3;
        --dc-gray-700: #D4D4D4;
        --dc-gray-800: #E5E5E5;
        --dc-gray-900: #F5F5F5;
        --dc-white: #0A0A0A;
    }
}

/* ==========================================================================
   WEBSITE MODE - Standard WordPress Page Layout
   Removes mobile-app-like fixed elements for traditional website experience
   ========================================================================== */

/* Website Mode Container */
.dc-website-mode {
    min-height: auto;
    padding-bottom: 0;
    background: transparent;
}

/* Hide mobile app header in website mode (use WP theme header) */
.dc-website-mode .dc-header {
    display: none;
}

/* Hide bottom navigation in website mode */
.dc-website-mode .dc-bottom-nav {
    display: none;
}

/* Website Mode - Standard Page Navigation */
.dc-page-nav {
    background: var(--dc-white);
    border-radius: var(--dc-radius-lg);
    box-shadow: var(--dc-shadow-card);
    padding: var(--dc-space-3);
    margin-bottom: var(--dc-space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--dc-space-2);
    justify-content: center;
}

.dc-page-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--dc-gray-600);
    text-decoration: none;
    border-radius: var(--dc-radius-md);
    font-weight: 600;
    font-size: var(--dc-text-sm);
    transition: all var(--dc-transition-fast);
    position: relative;
}

.dc-page-nav-item:hover {
    background: var(--dc-gray-100);
    color: var(--dc-gray-900);
}

.dc-page-nav-item.active {
    background: var(--dc-gradient-primary);
    color: var(--dc-white);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Desktop - wider layouts */
@media (min-width: 992px) {
    .dc-matches-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--dc-space-4);
    }
    
    .dc-dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--dc-space-4);
    }
}

/* Mobile - compact navigation at bottom */
@media (max-width: 768px) {
    .dc-app {
        padding: var(--dc-space-4);
        padding-bottom: 90px;
    }
    
    .dc-page-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        margin: 0;
        z-index: var(--dc-z-sticky);
        justify-content: space-around;
        padding: var(--dc-space-2);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
    
    .dc-page-nav-item {
        flex-direction: column;
        padding: 8px 8px;
        font-size: 10px;
        gap: 4px;
    }
    
    .dc-page-nav-item .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .dc-card-stack {
        min-height: 400px;
        max-height: 450px;
    }
}

/* ==========================================================================
   PAGE WRAPPER - Ensures consistent container behavior
   ========================================================================== */
.dc-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--dc-space-6) var(--dc-space-4);
}

.dc-page-wrapper.dc-narrow {
    max-width: 600px;
}

.dc-page-wrapper.dc-medium {
    max-width: 800px;
}

/* Page Title */
.dc-page-title {
    font-family: var(--dc-font-display);
    font-size: var(--dc-text-3xl);
    font-weight: 400;
    margin-bottom: var(--dc-space-6);
    color: var(--dc-gray-900);
}

/* Section Headers */
.dc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--dc-space-4);
}

.dc-section-title {
    font-size: var(--dc-text-lg);
    font-weight: 700;
    color: var(--dc-gray-900);
    margin: 0;
}

.dc-section-link {
    color: var(--dc-primary);
    font-size: var(--dc-text-sm);
    font-weight: 600;
    text-decoration: none;
}

.dc-section-link:hover {
    text-decoration: underline;
}
