:root {
    --pastel-pink: #FFB3C1;
    --pastel-blue: #B3D9FF;
    --pastel-yellow: #FFF5E5;
    --pastel-purple: #E5B3FF;
    --pastel-green: #B3FFC1;
    --pastel-orange: #FFD9B3;
    
    --primary-color: #FFB3C1;
    --secondary-color: #B3D9FF;
    --background-gradient: linear-gradient(135deg, #FFE5EC 0%, #E5F4FF 50%, #FFF5E5 100%);
    
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    
    --shadow-soft: 0 4px 15px rgba(255, 179, 193, 0.2);
    --shadow-card: 0 8px 30px rgba(179, 217, 255, 0.15);
    
    --border-radius: 20px;
    --border-radius-sm: 10px;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--background-gradient);
    color: var(--text-primary);
    min-height: 100vh;
}

.romantic-title, .nav-title, .timeline-title {
    font-family: 'Playfair Display', serif;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.hero-section {
    max-width: 800px;
    text-align: center;
}

.romantic-title {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-section {
    margin-bottom: 40px;
}

.login-btn {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 15px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

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

.google-icon {
    width: 24px;
    height: 24px;
}

.login-note {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer-pastel {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.nav-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
}

.role-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-badge.guest {
    background: var(--pastel-yellow);
    color: #666;
}

.role-badge.user {
    background: var(--pastel-blue);
    color: #0066cc;
}

.role-badge.admin {
    background: var(--pastel-pink);
    color: #cc0033;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: var(--border-radius-sm);
    padding: 8px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.dashboard-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.stats-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.actions-section {
    margin-bottom: 40px;
}

.action-btn {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

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

.action-btn.primary:hover {
    background: #ff9ba3;
}

.action-btn.secondary {
    color: var(--primary-color);
}

.action-btn.secondary:hover {
    background: var(--pastel-pink);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-3px);
}

.story-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

.story-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.story-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.story-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-tags {
    display: flex;
    gap: 10px;
}

.tag-pill {
    background: var(--pastel-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0066cc;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-card);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

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

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--pastel-blue);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.form-group input[type="file"] {
    padding: 10px;
    border: 1px solid var(--pastel-blue);
    border-radius: var(--border-radius-sm);
}

.photo-preview-container {
    margin-top: 15px;
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--border-radius-sm);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

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

.btn.primary:hover {
    background: #ff9ba3;
}

.btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-light);
}

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

#editor-container {
    height: 200px;
    border: 1px solid var(--pastel-blue);
    border-radius: var(--border-radius-sm);
}

@media (max-width: 768px) {
    .romantic-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-section {
        flex-direction: column;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}
