.photo-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.photo-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-button:active {
    transform: translateY(0);
}

.nav-button.prev::before {
    content: "←";
    font-size: 1.2em;
}

.nav-button.next::after {
    content: "→";
    font-size: 1.2em;
}

.nav-button.back {
    background-color: #6c757d;
}

.nav-button.back:hover {
    background-color: #5a6268;
}

.photo-display {
    margin: 20px 0;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.photo-full {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.photo-full:hover {
    transform: scale(1.02);
}

.photo-info {
    margin-top: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.photo-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9em;
}

.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s ease;
}

.comment:hover {
    transform: translateX(5px);
}

.voice-comment {
    margin: 10px 0;
}

.voice-comment audio {
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
}

.comment-date {
    color: #666;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
}

.add-comment {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.comment-type-selector {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.comment-type-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
}

.comment-type-selector label:hover {
    background-color: #dee2e6;
}

.comment-type-selector input[type="radio"] {
    margin: 0;
}

.text-comment-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.text-comment-input textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.voice-comment-input {
    margin-bottom: 10px;
}

.voice-comment-input input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    background-color: white;
}

.submit-comment {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.submit-comment:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.submit-comment:active {
    transform: translateY(0);
}

.no-comments {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.rotation-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.rotate-btn, .save-rotation-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0;
    min-width: 110px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rotate-btn:hover, .save-rotation-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rotate-btn:active, .save-rotation-btn:active {
    transform: translateY(0);
}

#photo-to-rotate {
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .photo-full {
        max-height: 60vh;
    }
    
    .comment-type-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .rotation-controls {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
        bottom: unset;
        right: unset;
    }
    
    .rotate-btn, .save-rotation-btn {
        width: 100%;
        min-width: 0;
    }
} 