StackFolio
/* Custom styles for the StackFolio */

body {
    background-color: #f8f9fa;
}

.section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    height: 100%;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}

.photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem 0.375rem 0 0;
    color: #6c757d;
    font-size: 3rem;
}

/* Clean photo card styles for gallery */
.photo-card-clean {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 250px;
    background: white;
}

.photo-card-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-thumbnail-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.photo-card-clean:hover .photo-thumbnail-clean {
    opacity: 0.9;
}

.photo-placeholder-clean {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.tag-badge {
    font-size: 0.75rem;
    margin: 0.125rem;
}

.metadata-item {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.metadata-item strong {
    color: #495057;
}

.api-status-success {
    color: #198754;
}

.api-status-error {
    color: #dc3545;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.log-entry {
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 0 0.375rem 0.375rem 0;
}

.log-entry.error {
    border-left-color: #dc3545;
}

.log-entry.success {
    border-left-color: #198754;
}

.search-result-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    transition: box-shadow 0.2s ease-in-out;
}

.search-result-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    background: white;
}

.tag-actions {
    display: flex;
    gap: 0.5rem;
}

.photo-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.metadata-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.metadata-card h6 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-floating-custom {
    position: relative;
}

.form-floating-custom label {
    position: absolute;
    top: 0;
    left: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
    background: white;
    padding: 0 0.25rem;
    transform: translateY(-50%);
    z-index: 2;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Custom navbar toggle icon styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon-custom {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.navbar-toggler:hover .navbar-toggler-icon-custom {
    color: white;
    transform: scale(1.1);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::before {
    content: "\f62a"; /* Bootstrap Icons x icon */
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon-custom::before {
    content: "\f479"; /* Bootstrap Icons list icon */
}

/* Hide navbar toggle on desktop/horizontal screens */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

.toast {
    min-width: 300px;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-thumbnail,
    .photo-placeholder {
        height: 150px;
    }
    
    .photo-card-clean {
        height: 200px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading states */
.loading-overlay {
    position: relative;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Photo loading overlay for lazy loading */
.photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 0.375rem;
}

/* Lazy loading image effects */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Improved photo card positioning for loading overlay */
.photo-card-clean {
    position: relative;
    contain: layout style paint;
}

/* Performance optimizations */
.photo-thumbnail-clean {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Aspect ratio for consistent layout */
.photo-card-clean::before {
    content: '';
    display: block;
    padding-top: 83.33%; /* 300/250 aspect ratio */
}

.photo-thumbnail-clean,
.photo-placeholder-clean,
.photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
