/* Let's Talk - Diaro-inspired Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Landing Page */
.landing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    color: white;
}

.logo h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Auth Pages */
.auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer a {
    color: #2196F3;
    text-decoration: none;
}

/* Dashboard */
.dashboard {
    background: #f5f5f5;
    min-height: 100vh;
}

.app-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-list a:hover {
    background: #f5f5f5;
}

.mood-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mood-item {
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
}

.content-area {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-controls .btn.active {
    background: #2196F3;
    color: white;
}

.entries-container {
    display: grid;
    gap: 1rem;
}

.entry-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.entry-card:hover {
    background: #f0f0f0;
    border-color: #2196F3;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.entry-header h3 {
    margin: 0;
    font-size: 16px;
}

.entry-mood {
    font-size: 18px;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 12px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Entry View Styles */
.entry-view {
    max-width: 100%;
}

.entry-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.entry-title h1 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-top: 2rem;
    white-space: pre-wrap;
}

.entry-header-info {
    margin-bottom: 2rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 14px;
    color: #666;
    margin-top: 0.5rem;
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-month {
    font-size: 18px;
    font-weight: 500;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-header {
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #666;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    background: white;
    min-height: 80px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day.has-entries {
    background: #e8f5e8;
}

.calendar-day.has-entries:hover {
    background: #d4edda;
}

.day-number {
    font-weight: 500;
    color: #333;
}

.entry-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* Image Upload Styles */
.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.entry-image {
    margin: 1rem 0 2rem 0;
}

.entry-image img {
    max-width: 600px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
}

.current-image {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.current-image img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;
}

.current-image label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.current-image input[type="checkbox"] {
    margin-right: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.entry-form {
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .entries-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}