/**
 * Couples Private Space - Luxury Design System
 * Minimal Luxury + Glassmorphism + Dark Mode
 * Mobile First Responsive Design
 */

/* ============================================================
   DESIGN TOKENS - Luxury Color Palette
   ============================================================ */
:root {
    /* Primary Colors - Elegant & Sophisticated */
    --color-primary: #A78BFA;        /* Soft Purple */
    --color-primary-light: #C4B5FD;
    --color-primary-dark: #7C3AED;
    
    --color-secondary: #EC4899;      /* Passionate Pink */
    --color-secondary-light: #F472B6;
    --color-secondary-dark: #DB2777;
    
    --color-accent: #8B5CF6;         /* Royal Violet */
    --color-accent-light: #A78BFA;
    --color-accent-dark: #6D28D9;
    
    /* Neutral Dark Mode Colors */
    --color-bg-primary: #0F0F1E;     /* Deep Navy */
    --color-bg-secondary: #1A1A2E;   /* Dark Slate */
    --color-bg-tertiary: #252541;
    --color-bg-elevated: #2D2D44;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Text Colors */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #A78BFA 0%, #EC4899 100%);
    --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-accent: linear-gradient(135deg, #6D28D9 0%, #DB2777 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.3);
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ============================================================
   TYPOGRAPHY - Premium Elegant
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    line-height: 1.7;
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

/* ============================================================
   GLASS MORPHISM EFFECT
   ============================================================ */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   LAYOUT - CONTAINER & GRID
   ============================================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-greeting {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    display: none;
}

@media (min-width: 640px) {
    .user-greeting {
        display: block;
    }
}

/* ============================================================
   BUTTONS - Premium Style
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    transform: scale(1.05);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
}

.login-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-icon {
    margin: 0 auto var(--space-md);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
}

.login-title {
    margin-bottom: var(--space-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--color-text-tertiary);
    font-size: 0.95rem;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    color: var(--color-text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-base);
}

.input-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--color-text-tertiary);
}

.btn-login {
    width: 100%;
    margin-top: var(--space-md);
}

/* ============================================================
   ERROR MESSAGE
   ============================================================ */
.error-message {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    font-size: 0.9rem;
}

/* ============================================================
   LOGIN FOOTER
   ============================================================ */
.login-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-md);
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.demo-item {
    padding: var(--space-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.demo-item strong {
    color: var(--color-primary-light);
    font-weight: 600;
}

.demo-item span {
    color: var(--color-text-tertiary);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 10;
}

.welcome-section {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-md);
}

.page-title {
    margin-bottom: var(--space-sm);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-tertiary);
}

/* ============================================================
   FEATURE CARDS GRID - The Heart of the Design
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ============================================================
   FEATURE CARD - Premium Luxury Design
   ============================================================ */
.feature-card {
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--color-primary), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.feature-card:hover .card-glow {
    opacity: 0.15;
}

/* Card Icon */
.card-icon {
    position: relative;
    margin-bottom: var(--space-lg);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-spring);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Card Content */
.card-content {
    flex: 1;
    position: relative;
}

.card-title {
    margin-bottom: var(--space-sm);
    font-size: 1.75rem;
    color: var(--color-text-primary);
}

.card-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Card Arrow */
.card-arrow {
    margin-top: var(--space-md);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.feature-card:hover .card-arrow {
    transform: translateX(-8px);
    color: var(--color-primary-light);
}

/* Individual Card Themes */
.card-night:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.card-categories:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.card-daily:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.card-surprises:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.card-manage:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

/* ============================================================
   BACKGROUND DECORATIONS
   ============================================================ */
.background-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    bottom: 20%;
    right: 10%;
    animation-delay: 15s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    top: 30%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 767px) {
    .cards-grid {
        gap: var(--space-md);
    }
    
    .feature-card {
        padding: var(--space-lg);
        min-height: 280px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.visible { display: block; }
