/**
 * TECHFLIX Page Builder - Frontend CSS
 * Estilos adicionais para o modo básico
 */

/* Estilo de busca vazio */
.tf-search-empty {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Estilo de erro */
.tf-error {
    padding: 20px;
    text-align: center;
    color: #ff6b6b;
}

/* Estilo vazio */
.tf-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* Banner overlay bg */
.tf-banner-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.8));
}

/* ===== Fullwidth Banner/Slider (Abaixo do Menu) ===== */
.tf-banner[data-fullwidth="true"],
.tf-banner-slider[data-fullwidth="true"] {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0;
    /* margin-top é definido via JavaScript para posicionar corretamente abaixo do menu */
}

/* Resultado de busca bloqueado */
.tf-search-result-item.locked {
    opacity: 0.5;
}

.tf-search-result-item.locked::after {
    content: '🔒';
    margin-left: auto;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tf-section {
    animation: fadeIn 0.3s ease;
}

/* Mobile menu toggle */
.tf-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--tf-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .tf-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ajustes de impressão */
@media print {
    .tf-sidebar,
    .tf-header,
    .tf-search {
        display: none;
    }

    .tf-main {
        margin-left: 0;
    }
}

/* ===== Ícone de Ampulheta (Cursos com Bloqueio de Tempo) ===== */
.tf-hourglass-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 152, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.tf-hourglass-icon .dashicons {
    color: #fff;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tf-course-card:hover .tf-hourglass-icon {
    transform: scale(1.1);
}

/* ===== Modal de Bloqueio de Tempo ===== */
.tf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.tf-modal.active {
    display: flex;
}

.tf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.tf-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tf-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #ff9800, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.tf-modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #fff;
}

.tf-modal-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
}

.tf-modal-message {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.tf-modal-message strong {
    color: #ff9800;
    font-weight: 600;
}

.tf-modal-close {
    background: linear-gradient(145deg, #e61919, #b71515);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-modal-close:hover {
    background: linear-gradient(145deg, #ff2222, #cc1818);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 25, 25, 0.4);
}

/* ===== Video Banner ===== */
.tf-video-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.tf-video-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tf-video-banner-video,
.tf-video-banner-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.tf-video-banner-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-video-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.tf-video-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.tf-video-banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.tf-video-banner-description {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 25px;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Fullwidth Video Banner */
.tf-video-banner[data-fullwidth="true"],
.tf-video-banner-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Responsivo - Tablet */
@media (max-width: 1199px) {
    .tf-video-banner-content {
        padding: 30px;
    }

    .tf-video-banner-title {
        font-size: 32px;
    }

    .tf-video-banner-description {
        font-size: 16px;
    }
}

/* Responsivo - Mobile */
@media (max-width: 767px) {
    .tf-video-banner-content {
        padding: 20px;
    }

    .tf-video-banner-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tf-video-banner-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .tf-video-banner .tf-banner-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===========================================
   Container Component
   =========================================== */

.tf-container {
    box-sizing: border-box;
    width: 100%;
}

.tf-container-wrapper {
    box-sizing: border-box;
}

.tf-container-child {
    box-sizing: border-box;
    width: 100%;
}

/* Classes de alinhamento para filhos do container */
.tf-container-child.tf-align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tf-container-child.tf-align-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.tf-container-child.tf-align-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Elementos dentro de container child devem ocupar largura total quando necessário */
.tf-container-child > .tf-image,
.tf-container-child > .tf-title,
.tf-container-child > .tf-text,
.tf-container-child > .tf-login-form-wrap,
.tf-container-child > .tf-registration-form-wrap {
    width: 100%;
}

/* ===== Form Loading Overlay (Minimalista) ===== */
.tf-login-form-wrap,
.tf-registration-form-wrap {
    position: relative;
    --tf-spinner-color: #e50914;
}

/* Formulário fica semi-transparente quando carregando */
.tf-login-form-wrap.tf-loading .tf-login-form,
.tf-login-form-wrap.tf-loading .tf-recovery-form,
.tf-registration-form-wrap.tf-loading .tf-registration-form {
    pointer-events: none;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

/* Spinner via pseudo-elemento ::before */
.tf-login-form-wrap.tf-loading::before,
.tf-registration-form-wrap.tf-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    z-index: 100;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--tf-spinner-color);
    animation: tf-spin 0.8s linear infinite;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

/* Imagens dentro de containers alinhados */
.tf-container-child.tf-align-center > .tf-image img {
    margin-left: auto;
    margin-right: auto;
}

.tf-container-child.tf-align-right > .tf-image img {
    margin-left: auto;
    margin-right: 0;
}

.tf-container-child.tf-align-left > .tf-image img {
    margin-left: 0;
    margin-right: auto;
}

.tf-container-equal-cols > .tf-container-child {
    flex: 1 1 0;
    min-width: 0;
}

.tf-container-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
}

/* Reset margins inside container children */
.tf-container-child > *:last-child {
    margin-bottom: 0 !important;
}

/* Responsivo para containers horizontais */
@media (max-width: 768px) {
    .tf-container-wrapper {
        flex-direction: column !important;
    }

    .tf-container-equal-cols > .tf-container-child,
    .tf-container-child[style*="flex:"] {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* ===== Form Field Validation Feedback ===== */
.tf-field-error,
.tf-field-success {
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 15px;
    padding: 4px 0;
    display: none;
}

.tf-field-error {
    color: #ef4444;
}

.tf-field-success {
    color: #10b981;
}

/* Input states */
.tf-form-input.has-error {
    border-color: #ef4444 !important;
}

.tf-form-input.has-success {
    border-color: #10b981 !important;
}

/* Shake animation for form errors */
@keyframes techflix-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.techflix-shake {
    animation: techflix-shake 0.5s ease-in-out;
}

/* PhoneValidator Integration - Estilos base com alta especificidade */
.tf-registration-form-wrap .phone-validator-container {
    display: flex !important;
    align-items: stretch !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    overflow: visible !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

.tf-registration-form-wrap .phone-validator-container:focus-within {
    border-color: #e50914 !important;
}

.tf-registration-form-wrap .phone-validator-selector {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
}

.tf-registration-form-wrap .phone-validator-selected {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    min-width: 85px !important;
    height: auto !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
}

.tf-registration-form-wrap .phone-validator-selected:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.tf-registration-form-wrap .phone-validator-flag {
    font-size: 18px !important;
    line-height: 1 !important;
}

.tf-registration-form-wrap .phone-validator-code {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
}

.tf-registration-form-wrap .phone-validator-arrow {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
    margin-left: auto !important;
}

.tf-registration-form-wrap .phone-validator-container > input[type="tel"],
.tf-registration-form-wrap .phone-validator-container .phone-validator-input,
.tf-registration-form-wrap .phone-validator-container input.tf-form-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    outline: none !important;
    min-width: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
}

.tf-registration-form-wrap .phone-validator-container > input[type="tel"]::placeholder,
.tf-registration-form-wrap .phone-validator-container .phone-validator-input::placeholder,
.tf-registration-form-wrap .phone-validator-container input.tf-form-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.tf-registration-form-wrap .phone-validator-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.tf-registration-form-wrap .phone-validator-search {
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    background: inherit !important;
    z-index: 1 !important;
}

.tf-registration-form-wrap .phone-validator-search input {
    width: 100% !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.tf-registration-form-wrap .phone-validator-search input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.tf-registration-form-wrap .phone-validator-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

.tf-registration-form-wrap .phone-validator-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.tf-registration-form-wrap .phone-validator-item .phone-validator-name {
    flex: 1 !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.tf-registration-form-wrap .phone-validator-item .phone-validator-code {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
}

.tf-registration-form-wrap .phone-validator-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tf-registration-form-wrap .phone-validator-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 4px 0 !important;
}

/* ===== Carrossel Mentoria - Mensagem Sem Acesso ===== */
.tf-mentoria-no-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 60px 24px;
    background: var(--techflix-bg-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--techflix-border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    gap: 16px;
    min-height: 200px;
}

.tf-mentoria-no-access svg {
    opacity: 0.5;
    color: var(--techflix-text-muted, rgba(255, 255, 255, 0.5));
}

.tf-mentoria-no-access p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--techflix-text-secondary, rgba(255, 255, 255, 0.6));
    max-width: 300px;
    line-height: 1.5;
}

/* =============================================
   PAGE BUILDER - Compatibilidade Dark/Light Theme
   ============================================= */

/* Body e containers principais */
.techflix-pb-page,
.tf-page-builder-content {
    background: var(--techflix-bg-body, #121212);
    color: var(--techflix-text, #ffffff);
}

/* Seções */
.tf-section {
    color: var(--techflix-text, #ffffff);
}

.tf-section-title {
    color: var(--techflix-text, #ffffff);
}

/* Cards de curso */
.tf-course-card {
    background: var(--techflix-bg-card, #0f0f14);
}

/* ===== Skeleton Loading Animation ===== */
@keyframes tfSkeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Swiper com Skeleton - layout antes do Swiper inicializar */
.tf-carousel:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.tf-carousel:not(.swiper-initialized) .swiper-slide {
    flex-shrink: 0;
    width: calc((100% - 60px) / 5); /* 5 slides desktop */
}

@media (max-width: 1024px) {
    .tf-carousel:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 30px) / 3); /* 3 slides tablet */
    }
}

@media (max-width: 768px) {
    .tf-carousel:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 15px) / 2); /* 2 slides mobile */
    }
}

/* Skeleton Card (carrossel de cursos) */
.tf-skeleton-card {
    background: var(--techflix-bg-card, #0f0f14);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Skeleton Thumb (imagem do curso) */
.tf-skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
}

/* Skeleton Content Container */
.tf-skeleton-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Title */
.tf-skeleton-title {
    height: 16px;
    width: 85%;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

/* Skeleton Meta (instrutor, duração, etc) */
.tf-skeleton-meta {
    height: 12px;
    width: 60%;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Skeleton Progress Bar */
.tf-skeleton-progress {
    height: 4px;
    width: 100%;
    border-radius: 2px;
    margin-top: 4px;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Skeleton Certificate */
.tf-skeleton-certificate {
    background: var(--techflix-bg-card, #0f0f14);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tf-skeleton-certificate-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
}

.tf-skeleton-certificate-title {
    height: 16px;
    width: 120px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

.tf-skeleton-certificate-date {
    height: 12px;
    width: 80px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--techflix-bg-surface, #1a1a24) 0%,
        var(--techflix-bg-card, #2a2a34) 50%,
        var(--techflix-bg-surface, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: tfSkeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Botões de navegação do carrossel */
.tf-carousel-prev,
.tf-carousel-next {
    background: var(--techflix-bg-surface, #1a1a24);
    color: var(--techflix-text-secondary, #a0a0b0);
    border: 1px solid var(--techflix-border, #24242E);
}

.tf-carousel-prev:hover,
.tf-carousel-next:hover {
    background: var(--techflix-bg-card, #0f0f14);
    color: var(--techflix-text, #ffffff);
    border-color: var(--techflix-primary, #926BFF);
}

/* Formulários - estilos base com variáveis CSS */
.tf-form-group label {
    color: var(--techflix-text, #ffffff);
}

.tf-form-input {
    background: var(--techflix-bg-input, #16161e);
    border: 1px solid var(--techflix-border, #24242E);
    color: var(--techflix-text, #ffffff);
}

.tf-form-input:focus {
    border-color: var(--techflix-primary, #926BFF);
    box-shadow: 0 0 0 3px rgba(146, 107, 255, 0.15);
}

.tf-form-input::placeholder {
    color: var(--techflix-text-muted, #5D5D74);
}

/* Botões primários */
.tf-btn-primary {
    background: var(--techflix-primary, #926BFF);
    color: #ffffff;
}

.tf-btn-primary:hover {
    background: var(--techflix-primary-hover, #a78bfa);
}

/* Links */
.tf-form-link,
.tf-login-link,
.tf-forgot-password-link {
    color: var(--techflix-primary, #926BFF);
}

.tf-form-link:hover,
.tf-login-link:hover,
.tf-forgot-password-link:hover {
    color: var(--techflix-primary-hover, #a78bfa);
}

/* Mensagens de erro/sucesso */
.tf-form-error {
    color: var(--techflix-danger, #ef4444);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tf-form-success {
    color: var(--techflix-success, #10b981);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Certificados */
.tf-certificates-grid .tf-certificate-card {
    background: var(--techflix-bg-card, #0f0f14);
    border: 1px solid var(--techflix-border, #24242E);
}

.tf-certificate-title {
    color: var(--techflix-text, #ffffff);
}

.tf-certificate-meta {
    color: var(--techflix-text-muted, #5D5D74);
}

/* Busca */
.tf-search-input {
    background: var(--techflix-bg-input, #16161e);
    border: 1px solid var(--techflix-border, #24242E);
    color: var(--techflix-text, #ffffff);
}

.tf-search-input:focus {
    border-color: var(--techflix-primary, #926BFF);
}

.tf-search-results {
    background: var(--techflix-bg-card, #0f0f14);
    border: 1px solid var(--techflix-border, #24242E);
}

.tf-search-result-item {
    color: var(--techflix-text, #ffffff);
    border-bottom: 1px solid var(--techflix-border, #24242E);
}

.tf-search-result-item:hover {
    background: var(--techflix-bg-surface, #1a1a24);
}

/* Container vazio */
.tf-container-empty {
    color: var(--techflix-text-muted, #5D5D74);
    background: var(--techflix-bg-surface, #1a1a24);
    border: 2px dashed var(--techflix-border, #24242E);
}

/* Texto e heading components */
.tf-heading-component {
    color: var(--techflix-text, #ffffff);
}

.tf-text-component {
    color: var(--techflix-text-secondary, #a0a0b0);
}

/* Shortcode Component */
.tf-shortcode {
    position: relative;
}

.tf-shortcode-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--techflix-text-muted, #666);
    font-size: 14px;
}

.tf-shortcode-loading .tf-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--techflix-border, #333);
    border-top-color: var(--techflix-primary, #e50914);
    border-radius: 50%;
    animation: tf-spin 0.8s linear infinite;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.tf-shortcode-error {
    padding: 20px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
}

/* HTML Customizado Component */
.tf-html {
    position: relative;
}

/* ========================================
   Product Download Component
   ======================================== */

.tf-product-download-section {
    padding: 20px 15px;
}

.tf-product-download {
    width: 100%;
}

.tf-product-download-loading .tf-skeleton-card {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: tf-skeleton-pulse 1.5s infinite;
}

.tf-product-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    opacity: 0.7;
}

.tf-pd-back-wrapper {
    margin-bottom: 20px;
}

.tf-pd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, filter 0.2s;
}

.tf-pd-back-btn:hover {
    opacity: 0.85;
    filter: brightness(1.2);
}

.tf-pd-back-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.tf-product-message .tf-pd-back-btn {
    margin-top: 20px;
}

.tf-pd-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
}

.tf-pd-thumb {
    width: 160px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.tf-pd-header-info {
    flex: 1;
    min-width: 0;
}

.tf-pd-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.tf-pd-excerpt {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

.tf-pd-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    align-items: center;
}

.tf-pd-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -2px;
}

.tf-pd-module {
    margin-bottom: 24px;
}

.tf-pd-module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tf-pd-module-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tf-pd-module-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.tf-pd-module-count {
    font-size: 12px;
    opacity: 0.5;
}

.tf-pd-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.tf-pd-file:hover {
    filter: brightness(1.2);
}

.tf-pd-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tf-pd-file-info .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tf-pd-file-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-pd-file-size {
    font-size: 12px;
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 15px;
}

.tf-pd-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tf-pd-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tf-pd-download-all {
    margin-top: 20px;
    text-align: center;
}

.tf-pd-download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.tf-pd-download-all-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsivo */
@media (max-width: 600px) {
    .tf-pd-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tf-pd-thumb {
        width: 120px;
    }

    .tf-pd-meta {
        justify-content: center;
    }

    .tf-pd-file {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .tf-pd-file-size {
        margin-left: 30px;
        padding-right: 0;
    }

    .tf-pd-download-btn {
        width: 100%;
        justify-content: center;
    }
}
