/* Enhanced Diary Styles - Add to end of styles.css */

/* Diary Header with Mood */
.diary-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #e60023, #ff6b6b);
    padding: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.diary-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diary-greeting {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
}

.mood-badge {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: moodPulse 2s ease-in-out infinite;
}

@keyframes moodPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tags Styling */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 10px 20px;
    margin-top: -10px;
}

.tag {
    background: linear-gradient(135deg, #e60023 0%, #ff6b6b 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Diary Form Enhancements */
.diary-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.mood-select,
.tags-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 14px;
}

.mood-select:focus,
.tags-input:focus {
    outline: none;
    border-color: #e60023;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(230, 0, 35, 0.2);
}

/* Enhanced Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background: #fff;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-header {
    background: linear-gradient(135deg, #e60023 0%, #ff6b6b 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.popup-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.popup-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.popup-input,
.popup-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.popup-input:focus,
.popup-textarea:focus {
    outline: none;
    border-color: #e60023;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.popup-textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 200px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

.popup-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e60023 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

.btn-secondary {
    background: #fff;
    color: #6c757d;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #cbd3da;
}
