/* =========================================
   Batool's Aptitude - Custom Styles
   ========================================= */

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #A67B5B;
    border-radius: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* SPA Section Styles */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-section.active {
    display: block;
    animation: fadeInPage 0.6s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Active State */
.nav-link.active {
    font-weight: 700;
    color: #A67B5B;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    min-width: 240px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dark .dropdown-content {
    background-color: rgb(41, 37, 36);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.4);
}

/* Show dropdown on hover (Desktop) - REMOVED per user request for click-only
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
} 
*/

/* Show dropdown with .show class (click-based) */
.dropdown-content.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-card {
    background: rgba(41, 37, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

#lightbox.show {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

#lightbox.show #lightbox-img {
    transform: scale(1.05);
}

/* SHOP STYLES */
.shop-category-img {
    border-radius: 20px;
    /* Rounded squares as per design */
    transition: transform 0.5s ease;
}

.shop-category-card:hover .shop-category-img {
    transform: scale(1.05);
}

.snugglet-img {
    transition: transform 0.3s ease;
}

.snugglet-card:hover .snugglet-img {
    transform: scale(1.1) rotate(2deg);
}

/* Modal Animation */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-out;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease-in;
}

#lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
}

/* Typewriter Effect */
.typewriter-text {
    display: inline-block;
    border-right: 3px solid currentColor;
    padding-right: 8px;
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter-text.typing-complete {
    border-right: none;
    animation: none;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: currentColor;
    }
}