/* Photo View Page */
.photo-page {
    padding: 20px 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: #8c2485;
    color: #8c2485;
    background: #fef5f9;
}

.photo-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

.photo-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.photo-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    border-color: #8c2485;
    color: #8c2485;
    background: #fef5f9;
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-like-large {
    padding: 12px 24px;
    font-size: 16px;
    border-color: #e0e0e0;
    transition: all 0.3s ease;
}

.btn-like-large:hover {
    border-color: #e91e63;
    background: #ffe0eb;
    transform: scale(1.02);
}

.btn-like-large.liked {
    border-color: #e91e63;
    background: #ffe0eb;
    color: #e91e63;
}

.btn-like-large .like-count {
    font-weight: 700;
    margin-left: 5px;
}

.btn-like-large i {
    font-size: 18px;
}

.btn-delete {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

.photo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-title {
    font-size: 24px;
    color: #333;
    margin: 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.photo-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 15px;
}

.stat i {
    color: #8c2485;
    width: 20px;
    text-align: center;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.user-header:hover {
    opacity: 0.8;
}

.user-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8c2485;
}

.user-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.user-info h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.user-role {
    color: #999;
    font-size: 14px;
}

.user-bio {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 14px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.user-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #8c2485;
    color: white;
    border: 2px solid #8c2485;
}

.btn-primary:hover {
    background: #ce3180;
    border-color: #ce3180;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #a50c54;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: #8c2485;
    color: #8c2485;
}

.more-photos {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.more-photos h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.more-item {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.more-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.more-item:hover img {
    transform: scale(1.1);
}

.more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s;
}

.more-item:hover .more-overlay {
    opacity: 1;
}

.more-overlay span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .photo-container {
        grid-template-columns: 1fr;
    }
    
    .photo-sidebar {
        order: -1;
    }
    
    .photo-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .photo-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .btn-like-large {
        padding: 14px 20px;
    }
    
    .more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .photo-main {
        padding: 10px;
    }
    
    .photo-title {
        font-size: 18px;
        padding: 15px;
    }
    
    .more-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}
