/* Recipe photo - positioned on right side */
.recipe-photo {
    width: 300px;
    height: 300px;
    position: relative;
    flex-shrink: 0;
}

.photo-preview,
.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.photo-preview:hover,
.photo-placeholder:hover {
    border-color: #667eea;
    background: #e9ecef;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    flex-direction: column;
    color: #adb5bd;
}

.photo-placeholder span {
    font-size: 2.5em;
    line-height: 1;
}

.photo-placeholder p {
    display: none;
}

/* Delete button */
.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.photo-delete-btn:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
}

.photo-delete-btn:active {
    transform: scale(0.95);
}

/* Upload overlay */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
    padding: 5px;
}

/* Success message */
.upload-success {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, 5px);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -5px);
    }
}