/* ═══════════════════════════════════════════════════════════
   GERAL LANCELOT - Base Utilities & Shared Components
   Part of the SP Lancelot Design System v2.0
   ═══════════════════════════════════════════════════════════ */

/* ─── Search Input (Navbar) ─── */
input[type=search] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    font-family: var(--spl-font, 'Inter', 'Jost', system-ui, sans-serif);
    font-size: 14px;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
    display: none;
}

input[type=search] {
    background: rgba(255, 255, 255, 0.06) url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat right 9px center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 9px 10px 9px 14px;
    width: 15px;
    color: var(--spl-text, #eef0fa);
    border-radius: 10em;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

input[type=search]:focus {
    width: 140px;
    border-radius: 10em;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--spl-primary, #7c5cff);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
    outline: none;
}

/* ─── Search (Top Bar Specific) ─── */
#busca-topo input[type=search] {
    width: 15px;
    padding-left: 10px;
    margin-top: 7px;
    color: var(--spl-text, #eef0fa);
    cursor: pointer;
}

#busca-topo input[type=search]:focus {
    width: 140px;
    padding-left: 25px;
    cursor: auto;
}

#busca-topo input:-moz-placeholder {
    color: transparent;
}

#busca-topo input::-webkit-input-placeholder {
    color: transparent;
}

#busca-topo input:focus:-moz-placeholder {
    color: var(--spl-text-secondary, #8b91b0);
}

#busca-topo input:focus::-webkit-input-placeholder {
    color: var(--spl-text-secondary, #8b91b0);
}

/* ─── Utility Text Classes ─── */
.txt-red-padrao-25 {
    color: var(--spl-accent, #e040fb);
    font-size: 24px;
    font-weight: 750;
}

.txt-red-padrao-20 {
    color: var(--spl-accent, #e040fb);
    font-size: 20px;
    font-weight: 700;
}

.txt-branca-20 {
    color: var(--spl-text, #eef0fa);
    font-size: 20px;
}

/* ─── Lesson Count Badge (on carousel cards) ─── */
.numero-aulas {
    background: rgba(6, 8, 16, 0.7);
    backdrop-filter: blur(10px);
    color: var(--spl-text, #eef0fa);
    border-radius: var(--spl-radius-sm, 10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    text-align: center;
    min-width: 44px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* ─── Tooltip ─── */
.tooltip-inner {
    background-color: var(--spl-surface-2, #1a1f3a);
    color: var(--spl-text, #eef0fa);
    border: 1px solid var(--spl-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: var(--spl-surface-2, #1a1f3a);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: var(--spl-surface-2, #1a1f3a);
}

/* ─── Lock/Warning Icon ─── */
.red-icon {
    color: var(--spl-danger, #ff4757);
}

/* ─── Primary Action Button ─── */
.btn-lancelot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: var(--spl-gradient, linear-gradient(135deg, #7c5cff 0%, #e040fb 100%));
    border: none;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(124, 92, 255, 0.3), 0 0 20px rgba(224, 64, 251, 0.15);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-lancelot:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(124, 92, 255, 0.45), 0 0 30px rgba(224, 64, 251, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.btn-lancelot:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ─── Secondary (White) Button ─── */
.btn-lancelot-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    color: var(--spl-bg, #060810);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.btn-lancelot-white:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    color: var(--spl-bg, #060810);
    text-decoration: none;
}

/* ─── Card Hover Effect (Lesson Thumbnails) ─── */
#opacityIn:hover img {
    opacity: 0.8;
    border-radius: var(--spl-radius, 16px);
    border: 2px solid var(--spl-primary, #7c5cff);
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}