/* ============================================
   A Witches Grimoire - Stylesheet
   ============================================ */

/* --- Scrollbar Styling --- */
* {
    scrollbar-width: thin;
    scrollbar-color: #374151 #111827;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: #111827;
}

*::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* --- Base Body Styling --- */
body {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
    background-attachment: fixed;
    color: #f9fafb;
}

/* --- Utility Classes --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Category Button Styles --- */
.category-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #2aa4ff, #126de3);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-btn:hover::before,
.category-btn.active::before {
    transform: scaleY(1);
}

.category-btn.active {
    background: linear-gradient(90deg, rgba(42,164,255,0.15) 0%, transparent 100%);
}

/* --- Resource Card Styles --- */
.resource-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(42, 164, 255, 0.2);
}

.resource-card:hover .card-icon {
    transform: rotate(12deg) scale(1.1);
}

.resource-card .card-icon {
    transition: transform 0.3s ease;
}

/* --- Language Dropdown Styles --- */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 9999px;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #2aa4ff;
    color: #fff;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-menu-item:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.lang-menu-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

.lang-menu-item:hover {
    background: linear-gradient(90deg, rgba(42,164,255,0.2) 0%, transparent 100%);
    color: #fff;
}

.lang-menu-item.active {
    background: linear-gradient(90deg, rgba(42,164,255,0.3) 0%, transparent 100%);
    color: #2aa4ff;
}

/* --- Text Effects --- */
.gradient-text {
    background: linear-gradient(135deg, #2aa4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glow Effect --- */
.glow {
    box-shadow: 0 0 20px rgba(42, 164, 255, 0.3);
}

/* --- Tag Pill Styles --- */
.tag-pill {
    background: linear-gradient(145deg, #1f2937 0%, #374151 100%);
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: linear-gradient(145deg, #2aa4ff 0%, #126de3 100%);
    color: white;
}

/* --- Hide Google Translate Default UI --- */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-te-gadget {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

.VIpgJd-ZVi9od-l4eHX-hSRGPd {
    display: none !important;
}