/**
 * Sick Monsters Theme - Custom Supplementary Stylesheet
 * 
 * Works harmoniously with Tailwind CSS to provide custom component styling,
 * typography helpers, and AdSense layout stabilization.
 * 
 * @package Sick_Monsters
 */

/* Custom Font Utilities */
.font-bn {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
}
.font-en {
    font-family: 'Playwrite NZ', 'Caveat', cursive, sans-serif !important;
}
.font-bengali {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif !important;
}



/* Advertisement & CLS Stabilization */
.sm-ad-unit {
    position: relative;
    margin: 1.5rem auto;
    text-align: center;
    width: 100%;
}
.sm-ad-badge {
    display: inline-block;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.sm-ad-wrapper {
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Custom Profile & Notification Dropdown System & Smooth Animations */
.sm-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.2s ease;
    pointer-events: none;
    z-index: 150;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

.sm-dropdown-menu.sm-dropdown-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Invisible bridge preventing cursor gap flickering */
.sm-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

/* Dropdown interactive items */
.sm-dropdown-item {
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sm-dropdown-item:focus-visible {
    background-color: #f3f4f6;
    outline: 2px solid #000;
    outline-offset: -2px;
}

/* Sidebar Width Transition */
.sidebar-transition {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide Scrollbar Helpers */
.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar,
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Print Styles for Digital Press ID Card */
@media print {
    header, footer, aside, nav, .print\:hidden, .print-hidden, .sm-ad-unit, #notification-dropdown, #profile-dropdown, .sm-dropdown-menu {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body * {
        visibility: hidden;
    }
    .sm-id-card-print, .sm-id-card-print * {
        visibility: visible;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .sm-id-card-print {
        position: fixed !important;
        left: 50% !important;
        top: 40% !important;
        transform: translate(-50%, -50%) !important;
        width: 380px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}
