/**
 * YITH Affiliates - UI/UX Customizado
 * Design: Glassmorphism + Cyberpunk
 * Tema: Hello Elementor Child by William Schons
 */

/* ========================================
   VARIÁVEIS GLOBAIS
   ======================================== */
:root {
    --wcaf-primary: #00adff;
    --wcaf-primary-glow: rgba(0, 173, 255, 0.5);
    --wcaf-bg-dark: #0f0f23;
    --wcaf-bg-card: rgba(26, 26, 46, 0.7);
    --wcaf-border: rgba(0, 173, 255, 0.3);
    --wcaf-text: #e0e0e0;
    --wcaf-text-muted: #a0a0a0;
    --wcaf-success: #00ff88;
    --wcaf-warning: #ffaa00;
    --wcaf-danger: #ff3366;
    --wcaf-gradient: linear-gradient(135deg, rgba(0, 173, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.yith-wcaf-dashboard {
    background: var(--wcaf-bg-dark);
    padding: 40px 20px;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.yith-wcaf-section {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   NAVEGAÇÃO DO DASHBOARD
   ======================================== */
.yith-wcaf-dashboard-navigation {
    background: var(--wcaf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wcaf-border);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 173, 255, 0.1) inset,
        0 4px 12px rgba(0, 173, 255, 0.2);
}

.yith-wcaf-dashboard-navigation a {
    flex: 1;
    min-width: 120px;
    padding: 14px 24px;
    background: rgba(0, 173, 255, 0.05);
    border: 1px solid var(--wcaf-border);
    border-radius: 12px;
    color: var(--wcaf-text);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.yith-wcaf-dashboard-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--wcaf-gradient);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.yith-wcaf-dashboard-navigation a:hover::before,
.yith-wcaf-dashboard-navigation a.active::before {
    left: 0;
}

.yith-wcaf-dashboard-navigation a:hover,
.yith-wcaf-dashboard-navigation a.active {
    border-color: var(--wcaf-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px var(--wcaf-primary-glow),
        0 4px 16px rgba(0, 173, 255, 0.3);
}

/* ========================================
   CARDS ESTATÍSTICAS
   ======================================== */
.yith-wcaf-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.yith-wcaf-stat-box {
    background: var(--wcaf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wcaf-border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 173, 255, 0.1) inset;
}

.yith-wcaf-stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 173, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.yith-wcaf-stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--wcaf-primary);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 40px var(--wcaf-primary-glow),
        0 0 0 1px var(--wcaf-primary) inset;
}

.yith-wcaf-stat-box:hover::before {
    opacity: 1;
}

.yith-wcaf-stat-label {
    color: var(--wcaf-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: block;
}

.yith-wcaf-stat-value {
    color: var(--wcaf-primary);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--wcaf-primary-glow);
    display: block;
}

.yith-wcaf-stat-description {
    color: var(--wcaf-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   TABELAS
   ======================================== */
.yith-wcaf-table-wrapper {
    background: var(--wcaf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wcaf-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 173, 255, 0.1) inset;
}

.yith-wcaf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.yith-wcaf-table thead tr {
    background: rgba(0, 173, 255, 0.1);
    border-bottom: 2px solid var(--wcaf-primary);
}

.yith-wcaf-table th {
    padding: 16px 20px;
    color: var(--wcaf-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    border-bottom: 1px solid var(--wcaf-border);
}

.yith-wcaf-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 173, 255, 0.1);
}

.yith-wcaf-table tbody tr:hover {
    background: rgba(0, 173, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 173, 255, 0.1) inset;
}

.yith-wcaf-table td {
    padding: 18px 20px;
    color: var(--wcaf-text);
    font-size: 14px;
}

.yith-wcaf-table tbody tr:last-child {
    border-bottom: none;
}

/* ========================================
   BADGES DE STATUS
   ======================================== */
.yith-wcaf-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.yith-wcaf-badge.approved,
.yith-wcaf-badge.paid,
.yith-wcaf-badge.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--wcaf-success);
    color: var(--wcaf-success);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.yith-wcaf-badge.pending,
.yith-wcaf-badge.on-hold {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--wcaf-warning);
    color: var(--wcaf-warning);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.yith-wcaf-badge.rejected,
.yith-wcaf-badge.cancelled,
.yith-wcaf-badge.failed {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--wcaf-danger);
    color: var(--wcaf-danger);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* ========================================
   GERADOR DE LINKS
   ======================================== */
.yith-wcaf-link-generator {
    background: var(--wcaf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wcaf-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 173, 255, 0.1) inset;
}

.yith-wcaf-link-generator h3 {
    color: var(--wcaf-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 0 20px var(--wcaf-primary-glow);
}

.yith-wcaf-link-generator input[type="text"],
.yith-wcaf-link-generator input[type="url"],
.yith-wcaf-link-generator select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 173, 255, 0.05);
    border: 1px solid var(--wcaf-border);
    border-radius: 12px;
    color: var(--wcaf-text);
    font-size: 15px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.yith-wcaf-link-generator input:focus,
.yith-wcaf-link-generator select:focus {
    outline: none;
    border-color: var(--wcaf-primary);
    box-shadow: 
        0 0 0 3px rgba(0, 173, 255, 0.1),
        0 0 20px var(--wcaf-primary-glow);
    background: rgba(0, 173, 255, 0.1);
}

/* ========================================
   BOTÕES
   ======================================== */
.yith-wcaf-button,
.yith-wcaf button,
.yith-wcaf input[type="submit"],
.yith-wcaf .button {
    padding: 14px 32px;
    background: var(--wcaf-primary);
    border: 1px solid var(--wcaf-primary);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.yith-wcaf-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.yith-wcaf-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 173, 255, 0.4),
        0 0 40px var(--wcaf-primary-glow);
}

.yith-wcaf-button:hover::before {
    width: 300px;
    height: 300px;
}

.yith-wcaf-button:active {
    transform: translateY(0);
}

/* Botão secundário */
.yith-wcaf-button.secondary {
    background: transparent;
    border-color: var(--wcaf-border);
    color: var(--wcaf-text);
}

.yith-wcaf-button.secondary:hover {
    background: rgba(0, 173, 255, 0.1);
    border-color: var(--wcaf-primary);
    color: var(--wcaf-primary);
}

/* ========================================
   ALERTAS E NOTIFICAÇÕES
   ======================================== */
.yith-wcaf-notice {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.yith-wcaf-notice.success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--wcaf-success);
    color: var(--wcaf-success);
}

.yith-wcaf-notice.warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--wcaf-warning);
    color: var(--wcaf-warning);
}

.yith-wcaf-notice.error {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--wcaf-danger);
    color: var(--wcaf-danger);
}

.yith-wcaf-notice.info {
    background: rgba(0, 173, 255, 0.1);
    border-color: var(--wcaf-primary);
    color: var(--wcaf-primary);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes wcaf-glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes wcaf-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.yith-wcaf-stat-value.yith-wcaf-animated-glow {
    animation: wcaf-glow-pulse 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
    .yith-wcaf-dashboard {
        padding: 20px 10px;
    }

    .yith-wcaf-dashboard-navigation {
        flex-direction: column;
    }

    .yith-wcaf-dashboard-navigation a {
        min-width: 100%;
    }

    .yith-wcaf-stats-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .yith-wcaf-table-wrapper {
        overflow-x: auto;
        padding: 16px;
    }

    .yith-wcaf-table {
        min-width: 600px;
    }

    .yith-wcaf-link-generator {
        padding: 20px;
    }

    .yith-wcaf-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .yith-wcaf-stat-value {
        font-size: 28px;
    }

    .yith-wcaf-stat-label {
        font-size: 11px;
    }

    .yith-wcaf-table th,
    .yith-wcaf-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}
