/**
 * NestroHub - Profile Page Custom Styles
 * Complements Tailwind CSS utility classes
 */

/* ==========================================================================
   Base & Mobile Optimizations
   ========================================================================== */
html {
    scroll-behavior: smooth;
    /* Removes the gray tap highlight on mobile devices for a native app feel */
    -webkit-tap-highlight-color: transparent;
}

/* Premium text selection matching the NestroHub gold accent */
::selection {
    background-color: #C9A24D;
    color: #ffffff;
}
::-moz-selection {
    background-color: #C9A24D;
    color: #ffffff;
}

/* Prevent text size adjustment after orientation changes on iOS */
body {
    -webkit-text-size-adjust: 100%;
}

/* ==========================================================================
   Hide Scrollbar Utility (Crucial for Mobile Swiping)
   ========================================================================== */
/* For Chrome, Safari, and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* For IE, Edge, and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    /* Enables momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch; 
}

/* ==========================================================================
   Tab Navigation & Content Area
   ========================================================================== */
.tab-content {
    display: none;
    opacity: 0;
}

.tab-content.active {
    display: block;
    /* Adds a subtle upward fade for a premium transition effect */
    animation: fadeUpIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-btn {
    position: relative;
    transition: all 0.3s ease;
    outline: none;
}

.tab-btn.active {
    color: #020617;
    font-weight: 700;
    border-bottom: 2px solid #020617;
}

/* Optional: Hover effect for non-active tabs on desktop */
@media (hover: hover) {
    .tab-btn:not(.active):hover {
        color: #020617;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Native Accordion (FAQ Section)
   ========================================================================== */
details > summary {
    list-style: none;
    outline: none;
    /* Removes default blue outline on mobile taps */
    -webkit-tap-highlight-color: rgba(0,0,0,0); 
}

/* Hides the default browser arrow for webkit */
details > summary::-webkit-details-marker {
    display: none;
}

/* Smooth expansion for the details content */
details[open] summary ~ * {
    animation: fadeDown 0.3s ease-in-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Line Clamping Utilities 
   (Fallback in case Tailwind's line-clamp isn't loaded)
   ========================================================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Hide all profile tab sections by default */
.tab-content {
    display: none !important;
}

/* Show only the selected tab */
.tab-content.active {
    display: block !important;
}
