/* ==========================================================
   EMU JAPAN WEB
   Dictionary Module Stylesheet
   ========================================================== */


/* 1. Header Icon & Section */

.dictionary-header-icon {
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}


/* 2. Common Card Border & Hover Transitions */

.dictionary-card,
.filter-card,
.dictionary-item-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dictionary-item-card {
    position: relative;
}

.dictionary-item-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px);
}


/* Accent Line di Atas Card Item */

.dictionary-item-card .dictionary-accent {
    height: 4px;
    width: 100%;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    transition: background-color 0.2s ease;
}

.dictionary-item-card:hover .dictionary-accent {
    background-color: var(--primary);
}


/* 3. Panel Acak Hari Ini & Category Icon */

.category-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


/* Toggle Icon Animation (Accordion) */

.toggle-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.card-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.card-header[aria-expanded="false"] .toggle-icon {
    transform: rotate(0deg);
}


/* 4. Form Filter Styling */

.search-input-group .form-control,
.filter-select {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-group .form-control:focus,
.filter-select:focus {
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent) !important;
}


/* 5. Typography & Text Styling Kosakata */

.dictionary-japanese {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    color: #2b2d42;
    letter-spacing: 1px;
    word-break: break-word;
}

.dictionary-kana {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
}


/* 6. Custom Badges */

.badge-soft-primary {
    background-color: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 500;
    padding: 0.5em 0.8em;
}