/* === Photo Album Styles === */

.photo-album-left {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.photo-album-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px;
    width: 460px;
    height: 690px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.photo-album-header {
    text-align: center;
    margin-bottom: 16px;
}

.photo-album-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin: 0 0 6px;
}

.photo-album-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.photo-stack-container {
    flex: 1;
    min-height: 380px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item {
    position: absolute;
    max-width: 360px;
    max-height: 360px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.photo-item.back-2 {
    transform: rotate(-6deg) scale(0.92);
    opacity: 0.6;
    z-index: 1;
}

.photo-item.back-1 {
    transform: rotate(4deg) scale(0.96);
    opacity: 0.8;
    z-index: 2;
}

.photo-item.front {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    z-index: 3;
}

.photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.photo-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.photo-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px;
}

.photo-empty-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.photo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    padding: 0 8px;
}

.photo-nav-btn {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.8), rgba(255, 20, 147, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    min-width: 80px;
}

.photo-nav-btn:hover {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
}

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

.photo-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.photo-count {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.photo-notes {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}

.photo-note-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.photo-note-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.photo-note-text {
    margin: 0;
    font-size: 13px;
    color: white;
    line-height: 1.5;
}

.photo-buttons {
    display: flex;
    gap: 10px;
}

.photo-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.photo-btn-add {
    background: linear-gradient(135deg, #74B9FF, #0984E3);
}

.photo-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.4);
}

.photo-btn-edit {
    background: linear-gradient(135deg, #FDCB6E, #F39C12);
}

.photo-btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.photo-btn-delete {
    background: linear-gradient(135deg, #E17055, #D63031);
}

.photo-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 48, 49, 0.4);
}

/* Photo flip animation */
@keyframes photoFlipIn {
    from {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

.photo-flipping {
    animation: photoFlipIn 0.4s ease-out;
}

/* Photo Modal Styles */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.photo-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.photo-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2D3436;
}

.photo-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #636E72;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.photo-modal-body {
    padding: 20px;
}

.photo-form-group {
    margin-bottom: 16px;
}

.photo-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 6px;
}

.photo-form-group input,
.photo-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #DFE6E9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.photo-form-group input:focus,
.photo-form-group textarea:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.15);
}

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

.photo-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    padding-top: 0;
}

.photo-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-modal-btn-cancel {
    background: #DFE6E9;
    color: #636E72;
}

.photo-modal-btn-cancel:hover {
    background: #B2BEC3;
}

.photo-modal-btn-save {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.photo-modal-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.35);
}

/* Responsive */
@media (max-width: 1200px) {
    .photo-album-left {
        left: 20px;
    }
}

@media (max-width: 900px) {
    .photo-album-left {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .mood-calendar-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
}
