/* ============================================
   DUNO Dating - Modern UI/UX Styling
   ============================================ */

:root {
    --dating-primary: #667eea;
    --dating-primary-dark: #5568d3;
    --dating-secondary: #764ba2;
    --dating-accent: #f093fb;
    --dating-danger: #ef4444;
    --dating-success: #10b981;
    --dating-warning: #f59e0b;
    --dating-info: #3b82f6;
    
    --dating-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dating-text-dark: #1e293b;
    --dating-text-light: #64748b;
    --dating-text-muted: #94a3b8;
    
    --dating-border: #e2e8f0;
    --dating-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --dating-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --dating-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --dating-shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
    
    --dating-radius-sm: 8px;
    --dating-radius-md: 12px;
    --dating-radius-lg: 16px;
    --dating-radius-xl: 20px;
    --dating-radius-full: 9999px;
    
    --dating-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Typography & Base Elements
   ============================================ */

.dating-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dating-text-dark);
    background: #f8fafc;
}

.dating-heading {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dating-text-dark);
}

.dating-heading-gradient {
    background: var(--dating-bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dating-subheading {
    color: var(--dating-text-light);
    font-size: 1.125rem;
    line-height: 1.75;
}

/* ============================================
   Navigation & Back Links
   ============================================ */

.dating-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--dating-border);
    border-radius: var(--dating-radius-full);
    color: var(--dating-text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--dating-transition);
    box-shadow: var(--dating-shadow-sm);
}

.dating-nav-back:hover {
    background: var(--dating-primary);
    border-color: var(--dating-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--dating-shadow-md);
    text-decoration: none;
}

.dating-nav-back i {
    transition: transform 0.3s ease;
}

.dating-nav-back:hover i {
    transform: translateX(-4px);
}

/* ============================================
   Cards & Containers
   ============================================ */

.dating-card {
    background: white;
    border-radius: var(--dating-radius-lg);
    box-shadow: var(--dating-shadow-sm);
    border: 1px solid var(--dating-border);
    transition: var(--dating-transition);
    overflow: hidden;
}

.dating-card:hover {
    box-shadow: var(--dating-shadow-lg);
    transform: translateY(-4px);
}

.dating-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dating-border);
    background: linear-gradient(to bottom, white, #fafbfc);
}

.dating-card-header-gradient {
    background: var(--dating-bg-gradient);
    color: white;
    border-bottom: none;
}

.dating-card-body {
    padding: 1.5rem;
}

.dating-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--dating-border);
    background: #fafbfc;
}

/* ============================================
   Forms & Inputs
   ============================================ */

.dating-section {
    margin-bottom: 2rem;
}

.dating-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dating-text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--dating-primary);
    display: inline-block;
}

.dating-form-group {
    margin-bottom: 1.5rem;
}

.dating-label {
    display: block;
    font-weight: 600;
    color: var(--dating-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.dating-label-required::after {
    content: ' *';
    color: var(--dating-danger);
}

.dating-input,
.dating-select,
.dating-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--dating-border);
    border-radius: var(--dating-radius-md);
    font-size: 1rem;
    transition: var(--dating-transition);
    background: white;
}

.dating-input:focus,
.dating-select:focus,
.dating-textarea:focus {
    outline: none;
    border-color: var(--dating-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.dating-textarea {
    resize: vertical;
    min-height: 120px;
}

.dating-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--dating-text-muted);
}

.dating-input-icon {
    position: relative;
}

.dating-input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dating-text-muted);
}

.dating-input-icon .dating-input {
    padding-left: 3rem;
}

/* ============================================
   Buttons
   ============================================ */

.dating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--dating-radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--dating-transition);
    cursor: pointer;
    white-space: nowrap;
}

.dating-btn-primary {
    background: var(--dating-bg-gradient);
    color: white;
    box-shadow: var(--dating-shadow-md);
}

.dating-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--dating-shadow-lg);
    color: white;
}

.dating-btn-secondary {
    background: white;
    color: var(--dating-primary);
    border-color: var(--dating-primary);
}

.dating-btn-secondary:hover {
    background: var(--dating-primary);
    color: white;
}

.dating-btn-outline {
    background: transparent;
    color: var(--dating-text-dark);
    border-color: var(--dating-border);
}

.dating-btn-outline:hover {
    background: var(--dating-primary);
    border-color: var(--dating-primary);
    color: white;
}

.dating-btn-danger {
    background: var(--dating-danger);
    color: white;
}

.dating-btn-danger:hover {
    background: #dc2626;
}

.dating-btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.dating-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.dating-btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   Badges & Tags
   ============================================ */

.dating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--dating-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.dating-badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--dating-primary);
}

.dating-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dating-success);
}

.dating-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--dating-warning);
}

.dating-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dating-danger);
}

.dating-badge-gradient {
    background: var(--dating-bg-gradient);
    color: white;
}

/* ============================================
   Astrology Elements
   ============================================ */

.astro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--dating-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--dating-shadow-sm);
}

.astro-badge-sun {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.astro-badge-moon {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.astro-badge-rising {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
}

.astro-card {
    background: white;
    border-radius: var(--dating-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--dating-transition);
    border: 2px solid transparent;
}

.astro-card:hover {
    border-color: var(--dating-primary);
    transform: translateY(-4px);
    box-shadow: var(--dating-shadow-lg);
}

.astro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

/* ============================================
   Profile Elements
   ============================================ */

.dating-profile-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fafbfc;
    border-radius: var(--dating-radius-md);
    border: 1px solid var(--dating-border);
}

.dating-profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--dating-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dating-profile-stat-label {
    font-size: 0.875rem;
    color: var(--dating-text-muted);
    font-weight: 500;
}

.dating-profile-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dating-text-dark);
}

/* ============================================
   Alerts & Messages
   ============================================ */

.dating-alert {
    padding: 1.25rem;
    border-radius: var(--dating-radius-md);
    border-left: 4px solid;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.dating-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--dating-success);
    color: #065f46;
}

.dating-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--dating-warning);
    color: #92400e;
}

.dating-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--dating-danger);
    color: #991b1b;
}

.dating-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--dating-info);
    color: #1e40af;
}

.dating-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ============================================
   Empty States
   ============================================ */

.dating-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.dating-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dating-primary);
}

.dating-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dating-text-dark);
    margin-bottom: 0.5rem;
}

.dating-empty-text {
    color: var(--dating-text-light);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================
   Match Cards
   ============================================ */

.dating-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dating-match-card {
    background: white;
    border-radius: var(--dating-radius-xl);
    overflow: hidden;
    box-shadow: var(--dating-shadow-sm);
    transition: var(--dating-transition);
    border: 1px solid var(--dating-border);
}

.dating-match-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dating-shadow-xl);
}

.dating-match-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dating-match-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dating-match-card:hover .dating-match-image img {
    transform: scale(1.1);
}

.dating-match-percentage {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: var(--dating-radius-full);
    font-weight: 700;
    color: var(--dating-primary);
    box-shadow: var(--dating-shadow-md);
    z-index: 2;
}

.dating-match-online {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--dating-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--dating-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--dating-shadow-md);
}

.dating-match-online i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dating-match-content {
    padding: 1.5rem;
}

.dating-match-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dating-text-dark);
    margin-bottom: 0.5rem;
}

.dating-match-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dating-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dating-match-info i {
    color: var(--dating-text-muted);
}

.dating-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dating-match-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ============================================
   Group Cards
   ============================================ */

.dating-group-card {
    background: white;
    border-radius: var(--dating-radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--dating-border);
    transition: var(--dating-transition);
}

.dating-group-card:hover {
    border-color: var(--dating-primary);
    transform: translateY(-4px);
    box-shadow: var(--dating-shadow-lg);
}

.dating-group-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--dating-radius-md);
    background: var(--dating-bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.dating-group-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dating-text-dark);
    margin-bottom: 0.5rem;
}

.dating-group-description {
    color: var(--dating-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.dating-group-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--dating-border);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991.98px) {
    .dating-match-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .dating-card-header,
    .dating-card-body,
    .dating-card-footer {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .dating-match-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dating-section-title {
        font-size: 1.125rem;
    }
    
    .dating-btn {
        padding: 0.75rem 1.5rem;
    }
    
    .dating-empty-state {
        padding: 3rem 1.5rem;
    }
    
    .dating-empty-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .dating-match-actions {
        flex-direction: column;
    }
    
    .dating-match-actions .dating-btn {
        width: 100%;
    }
    
    .dating-btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dating-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dating-slide-up {
    animation: slideUp 0.6s ease;
}

/* ============================================
   Utility Classes
   ============================================ */

.dating-text-gradient {
    background: var(--dating-bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dating-divider {
    height: 1px;
    background: var(--dating-border);
    margin: 2rem 0;
}

.dating-spacer-sm {
    height: 1rem;
}

.dating-spacer-md {
    height: 2rem;
}

.dating-spacer-lg {
    height: 3rem;
}

.dating-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dating-row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.dating-col {
    padding: 1rem;
}
