/* Remove Page Navigation Delays
   Makes all navigation and clickable elements respond instantly
   Removes transition delays for better user experience
*/

/* ========== INSTANT NAVIGATION - NO DELAYS ========== */

/* Remove transitions from navigation links */
.nav-link,
.nav-links a,
.header a,
.logo,
a[href*="index.php"],
a[href*="stores.php"],
a[href*="dashboard.php"],
a[href*="domain.php"],
a[href*="auctions.php"] {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

/* Remove transitions from domain table links */
.domain-name,
.domain-name a,
.domain-row a,
.table-container a,
.auction-card a,
.watchlist-card a {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Remove transitions from buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-sm,
.btn-buy,
.btn-offer,
.btn-enquiry,
.btn-auction,
button[type="submit"],
button[type="button"] {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Remove transitions from clickable items */
.portfolio-table a,
.portfolio-btn,
.action-button,
.tab-button,
.category-pill,
.portfolio-user-link,
.owner-link,
.enquire-btn {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Keep hover effects but make them instant */
.nav-link:hover,
.domain-name:hover,
.btn:hover,
.portfolio-btn:hover,
.tab-button:hover,
.category-pill:hover {
    /* Hover styles apply instantly */
    transition: none !important;
}

/* ========== PRESERVE NECESSARY ANIMATIONS ========== */

/* Keep theme switching animation */
.theme-switching *,
body.theme-switching * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* Keep notification animations */
.notification-badge,
.notification-icon.has-new,
.notification-ripple {
    /* Preserve notification animations */
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

/* Keep modal animations if any */
.modal-backdrop,
.modal-content {
    /* Preserve modal transitions */
    transition: opacity 0.3s ease !important;
}

/* ========== INSTANT CLICK FEEDBACK ========== */

/* Instant active states */
a:active,
button:active,
.nav-link:active,
.btn:active {
    transform: translateY(1px) !important;
    transition: none !important;
}

/* Remove transform transitions */
.logo img,
.nav-link,
.btn,
.domain-row,
.category-pill,
.portfolio-btn {
    transform: none !important;
}

/* Instant hover transforms */
.logo img:hover,
.nav-link:hover,
.btn:hover {
    transform: translateY(-1px) !important;
}

/* ========== DISABLE PAGE TRANSITION EFFECTS ========== */

/* Remove any page fade/slide transitions */
body,
main,
.container,
.content,
.page-wrapper {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure links work instantly */
a {
    cursor: pointer !important;
}

/* Remove delay from all interactive elements */
*[onclick],
*[href],
button,
input[type="submit"],
input[type="button"],
.clickable,
.interactive {
    transition: none !important;
    cursor: pointer !important;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */

/* Disable will-change on navigation elements */
.nav-link,
.domain-name,
.btn {
    will-change: auto !important;
}

/* Force hardware acceleration for instant response */
.nav-link,
.domain-name a,
.btn {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ========== SPECIFIC FIXES ========== */

/* Dashboard tab switching - instant */
.tab-button,
.sub-tab-button,
.toggle-btn {
    transition: none !important;
}

/* Table row hover - instant */
.domain-row:hover,
.portfolio-table tr:hover {
    transition: none !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Category selection - instant */
.category-pill:hover,
.category-pill.active {
    transition: none !important;
}

/* Search form - instant */
.search-input:focus,
.search-form button:hover {
    transition: none !important;
}

/* ========== MOBILE INSTANT RESPONSE ========== */

@media (max-width: 768px) {
    /* Remove all transitions on mobile for better performance */
    * {
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
    
    /* Except theme switching */
    .theme-switching * {
        transition: background-color 0.3s ease, color 0.3s ease !important;
    }
}

/* ========== DEBUG HELPER ========== */

/* Uncomment to verify transitions are removed */
/*
* {
    border: 1px solid red !important;
    transition: none !important;
}
*/
