/* Diary-specific styles */
.diary-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.diary-header {
    max-width: 600px;
    margin: 0 auto;
}

.diary-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.diary-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.diary-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.diary-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.diary-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.diary-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.diary-main {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.entry-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.rating-slider {
    position: relative;
    margin-top: 0.5rem;
}

.rating-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rating-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.rating-value {
    position: absolute;
    top: -2rem;
    right: 0;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.diary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-card,
.mood-chart {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.stats-card h4,
.mood-chart h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
}

.chart-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.chart-placeholder {
    color: #9ca3af;
    font-style: italic;
}

.entries-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

.entries-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.entries-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entry-item {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid #f59e0b;
    transition: transform 0.2s ease;
}

.entry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

.entry-date {
    font-weight: 600;
    color: #1f2937;
}

.entry-ratings {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.entry-content {
    margin-bottom: 1rem;
}

.entry-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.entry-gratitude,
.entry-goals {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.entry-gratitude strong,
.entry-goals strong {
    color: #374151;
    display: block;
    margin-bottom: 0.25rem;
}

.no-entries {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .diary-title {
        font-size: 2rem;
    }
    
    .diary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .diary-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .diary-main {
        padding: 1.5rem;
    }
    
    .entries-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .entry-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .entry-ratings {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .diary-hero {
        padding: 2rem 0;
    }
    
    .diary-title {
        font-size: 1.75rem;
    }
    
    .diary-main {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .diary-sidebar {
        margin: 0 1rem;
    }
    
    .entries-section {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .entry-item {
        padding: 1rem;
    }
    
    .rating-labels {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
