/*
Theme Name: Astra Filho - ProBrindes Moderno
Description: Tema filho personalizado para modernizar toda a interface da loja
Template: astra
Version: 1.0
Author: Trudes Empreendimentos
*/

/* ===== RESET E BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
}

/* ===== HEADER MODERNO ===== */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.site-header .main-header-bar {
    background: transparent;
    border-bottom: none;
}

.site-header .main-header-bar .ast-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.site-header .main-header-bar .ast-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== NAVEGAÇÃO PRINCIPAL ===== */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.main-navigation ul {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
    margin: 0;
}

.main-navigation a {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 15px;
    margin: 10px 5px;
}

.main-navigation a:hover {
    color: #667eea;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-navigation a:hover::before {
    width: 80%;
}

/* ===== SIDEBAR ADMIN MODERNO ===== */
#adminmenu {
    background: linear-gradient(180deg, #2d3748 0%, #4a5568 100%);
    border-right: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

#adminmenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#adminmenu a {
    color: #e2e8f0;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

#adminmenu a:hover {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-left-color: #667eea;
    transform: translateX(5px);
}

#adminmenu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

#adminmenu a:hover::before {
    left: 100%;
}

#adminmenu .wp-menu-image {
    margin-right: 10px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

#adminmenu a:hover .wp-menu-image {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== SUBMENUS MODERNOS ===== */
#adminmenu .wp-submenu {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 15px 15px 0;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

#adminmenu .wp-submenu a {
    padding: 12px 25px;
    font-size: 14px;
    border-left: none;
    margin: 0;
}

#adminmenu .wp-submenu a:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateX(3px);
}

/* ===== CONTEÚDO PRINCIPAL MODERNO ===== */
.wrap {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin: 20px;
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.wp-heading-inline {
    color: #2d3748;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wp-heading-inline::before {
    content: '📊';
    font-size: 36px;
}

/* ===== BOTÕES MODERNOS ===== */
.button, .button-primary, .button-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.button:hover, .button-primary:hover, .button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.button::before, .button-primary::before, .button-secondary:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.button:hover::before, .button-primary:hover::before, .button-secondary:hover::before {
    left: 100%;
}

/* ===== TABELAS MODERNAS ===== */
.wp-list-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.wp-list-table thead th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    font-weight: 700;
    padding: 20px 15px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-list-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.wp-list-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wp-list-table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    color: #4a5568;
    font-weight: 500;
}

/* ===== FORMULÁRIOS MODERNOS ===== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], 
input[type="url"], input[type="tel"], input[type="search"], textarea, select {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="url"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, textarea:focus, select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* ===== CARDS E CONTAINERS MODERNOS ===== */
.postbox, .metabox-holder .postbox {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.postbox .hndle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 20px 20px 0 0;
}

.postbox .inside {
    padding: 25px;
}

/* ===== NOTIFICAÇÕES MODERNAS ===== */
.notice {
    border: none;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.notice-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 5px solid #16a34a;
}

.notice-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 5px solid #dc2626;
}

.notice-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 5px solid #d97706;
}

.notice-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #2563eb;
}

/* ===== PAGINAÇÃO MODERNA ===== */
.tablenav-pages {
    margin: 20px 0;
}

.tablenav-pages a, .tablenav-pages span {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 0 5px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.tablenav-pages a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tablenav-pages .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ===== FILTROS E BUSCA MODERNOS ===== */
.tablenav {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.tablenav .tablenav-pages {
    margin: 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .wrap {
        margin: 10px;
        padding: 20px;
    }
    
    .wp-heading-inline {
        font-size: 24px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        margin: 5px 0;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wrap {
    animation: fadeInUp 0.6s ease-out;
}

.postbox {
    animation: slideInLeft 0.6s ease-out;
}

/* ===== WOOCOMMERCE ESPECÍFICO ===== */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    border: none;
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce .woocommerce-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 5px solid #16a34a;
}

.woocommerce .woocommerce-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #2563eb;
}

.woocommerce .woocommerce-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 5px solid #dc2626;
}

/* ===== DASHBOARD WOOCOMMERCE ===== */
.woocommerce-layout__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    margin: 0;
}

.woocommerce-layout__main {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 30px;
}

/* ===== CUSTOMIZAÇÕES ESPECÍFICAS ===== */
.wp-admin .wp-list-table .column-actions .row-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-admin .wp-list-table tbody tr:hover .row-actions {
    opacity: 1;
}

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
.button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* ===== MODE ESCURO (OPCIONAL) ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .wrap {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .wp-list-table {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .wp-list-table thead th {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
        color: #e2e8f0;
        border-bottom-color: #718096;
    }
    
    .wp-list-table tbody tr:hover {
        background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    }
    
    .wp-list-table tbody td {
        color: #e2e8f0;
    }
}
