/* Custom styles.css for FAVSYNC */

* {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

/* Scrollbar Hide for horizontal scroll */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism utility */
.glassmorphism {
    background: rgba(17, 24, 39, 0.7); /* gray-900 with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.item-card {
    background: rgba(31, 41, 55, 0.5); /* gray-800 */
    border: 1px solid rgba(55, 65, 81, 0.5); /* gray-700 */
    transition: all 0.2s ease-in-out;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border-color: rgba(75, 85, 99, 0.8); /* gray-600 */
}

/* Line clamp utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Flat View specific adjustments */
.flat-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}

.flat-card {
    padding: 0.5rem !important;
}

.flat-card img {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.flat-card h4 {
    font-size: 0.75rem !important;
}

/* Images View (Pinterest Style) */
.images-grid {
    columns: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .images-grid {
        columns: 4;
    }
}

.images-grid .item-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

/* Context Menu Polishing */
#context-menu {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(55, 65, 81, 0.7);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
    padding: 0.4rem !important;
    min-width: 200px;
}

#context-menu button {
    border-radius: 8px !important;
    margin: 1px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

#context-menu button:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    transform: translateX(4px);
}

#context-menu button i {
    opacity: 0.7;
    transition: all 0.2s;
}

#context-menu button:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Modal Animations */
.modal-container {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-container.scale-95 {
    transform: scale(0.95);
}

.modal-container.scale-100 {
    transform: scale(1);
}

/* Toast Notification System */
.toast {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px -2px rgba(59, 130, 246, 0.3);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    items-center: center;
    gap: 0.75rem;
    animation: toast-in 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards, toast-out 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards 2.6s;
    white-space: nowrap;
}

@keyframes toast-in {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* Custom Stylish Tooltip for 2nd Button */
.btn-2nd {
    position: relative;
}

.btn-2nd::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    right: 0;
    padding: 0.6rem 0.8rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5), 0 0 10px -2px rgba(59, 130, 246, 0.3);
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    line-height: 1.4;
}

/* Tooltip Arrow */
.btn-2nd::before {
    content: '';
    position: absolute;
    bottom: 110%;
    right: 15px;
    border: 6px solid transparent;
    border-top-color: rgba(59, 130, 246, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(10px);
    pointer-events: none;
    z-index: 100;
}

.btn-2nd:hover::after,
.btn-2nd:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Base custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #111827; 
}
::-webkit-scrollbar-thumb {
    background: #374151; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4B5563; 
}
