/**
 * GaleriePics Custom CSS
 * Professional Dark Theme
 */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 6px;
}

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

/* Gallery Card Hover Effects */
.gallery-card {
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
}

/* Image Grid Masonry Effect */
.image-grid {
    column-count: 4;
    column-gap: 1rem;
}

.image-grid-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .image-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .image-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .image-grid {
        column-count: 1;
    }
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #E91E63;
}

/* Custom Checkbox */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #E91E63;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #333;
    border-top: 3px solid #E91E63;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Table Responsive */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.5rem !important;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }
}

/* Selection Color */
::selection {
    background-color: #E91E63;
    color: white;
}

::-moz-selection {
    background-color: #E91E63;
    color: white;
}

/* Dropdown Menu Fix */
.group:hover .group-hover\:block {
    display: block !important;
}

/* Image Aspect Ratio Fix */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Smooth Transitions */
a,
button,
.transition {
    transition: all 0.2s ease;
}

/* Custom Button Styles */
button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File Upload Drag & Drop */
.file-upload-drag {
    transition: all 0.3s ease;
}

.file-upload-drag:hover {
    border-color: #E91E63 !important;
    background-color: rgba(233, 30, 99, 0.05);
}

/* Toast Notifications (for future use) */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Navigation Toggle */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }
}
