/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language dropdown */
.language-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option:hover {
    background-color: rgba(243, 244, 246, 1);
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(209, 213, 219, 0.8);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.8);
}

/* Modal styles */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Icon button styles */
.icon-btn {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Reaction button styles */
.reaction-btn.active {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.reaction-bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Author bio popbox */
.author-bio-popbox {
    position: absolute;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.author-bio-popbox.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.author-bio-popbox::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.author-name {
    position: relative;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }

    /* Mobile layout order */
    .mobile-layout {
        display: flex;
        flex-direction: column;
    }

    .mobile-calculator {
        order: 1;
    }

    .mobile-ad-1 {
        order: 2;
    }

    .mobile-article {
        order: 3;
    }

    .mobile-ad-2 {
        order: 4;
    }

    .mobile-related {
        order: 5;
    }

    .mobile-ad-3 {
        order: 6;
    }

    .mobile-author {
        order: 7;
    }

    /* Adjust popbox for mobile */
    .author-bio-popbox {
        width: 280px;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px);
    }

    .author-bio-popbox.show {
        transform: translateX(-50%) translateY(0);
    }

    .author-bio-popbox::before {
        left: 50%;
        margin-left: -8px;
    }
}

#slider {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

#slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Calculator/tools/project css only using */
.grippie {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #e5e7eb; /* Tailwind gray-200 */
    cursor: ns-resize;
    border-bottom-left-radius: 0.375rem; /* rounded-b-md */
    border-bottom-right-radius: 0.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.grippie i {
    color: #9ca3af; /* Tailwind gray-400 */
    font-size: 14px;
    pointer-events: none; /* So dragging works smoothly */
}

/* Notification styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}


/* Calculator/tools/project css only using end */

