/**
 * My Account System - Responsive CSS
 * 
 * Estilos completos para el sistema My Account personalizado
 * Dashboard dinámico, VECI landing, widgets y acciones rápidas
 * 
 * @package BagsAndGo
 * @version 1.0.0
 */

/* ===================================================
   ESTRUCTURA WOOCOMMERCE MY ACCOUNT
   =================================================== */

.woocommerce-MyAccount-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    clear: both;
    overflow: hidden; /* Clearfix */
}

.woocommerce-MyAccount-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-MyAccount-navigation {
    display: none; /* Ocultar navegación - UX mejorada */
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    clear: both;
    display: block;
}

/* Override estilos problemáticos de WooCommerce */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    clear: both;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-MyAccount-wrapper {
        padding: 15px;
    }
}

/* Navigation Styles */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    background: #667eea;
    color: white;
}

/* ===================================================
   BREADCRUMBS
   =================================================== */

.myaccount-breadcrumbs {
    margin-bottom: 30px;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    background: #e7f3ff;
    color: #0056b3;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 600;
}

.breadcrumb-icon {
    margin-right: 6px;
    font-size: 16px;
}

.breadcrumb-text {
    white-space: nowrap;
}

.breadcrumb-separator {
    margin: 0 12px;
    color: #999;
    font-weight: normal;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .breadcrumb-separator {
        margin: 0 8px;
    }
    
    .breadcrumb-text {
        display: none;
    }
    
    .breadcrumb-icon {
        margin-right: 0;
    }
}

/* ===================================================
   DASHBOARD PRINCIPAL
   =================================================== */

.bagsgo-myaccount-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.dashboard-welcome {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.dashboard-member-since {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Widgets Grid */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.widget-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.action-card.highlight {
    border-color: #ffa500;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
}

.action-card.highlight:hover {
    border-color: #ff8c00;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.action-icon {
    font-size: 36px;
    margin-bottom: 5px;
}

.action-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.action-desc {
    font-size: 13px;
    color: #666;
}

/* Recent Orders */
.dashboard-recent-orders {
    margin-bottom: 40px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.order-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-date {
    font-size: 13px;
    color: #666;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.order-items {
    margin-bottom: 10px;
}

.order-item-name {
    font-size: 14px;
    color: #333;
    padding: 5px 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-status.status-cancelled,
.order-status.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.view-order-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.view-order-link:hover {
    text-decoration: underline;
}

.view-all-orders {
    text-align: center;
}

.no-orders {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

.no-orders p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* CTA */
.dashboard-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.cta-content p {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

/* ===================================================
   VECI LANDING PAGE
   =================================================== */

.bagsgo-veci-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
.veci-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.3);
}

.veci-hero-badge {
    margin-bottom: 20px;
}

.veci-hero-badge img {
    max-height: 60px;
    width: auto;
}

.veci-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.veci-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

/* Quick Access Button */
.veci-quick-access {
    text-align: center;
    margin-bottom: 50px;
}

.veci-portal-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.veci-portal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}

.button-icon {
    font-size: 24px;
}

.button-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.veci-portal-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Services Grid */
.veci-services-grid {
    margin-bottom: 50px;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #11998e;
    box-shadow: 0 6px 25px rgba(17, 153, 142, 0.15);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.card-features li {
    font-size: 13px;
    color: #555;
    padding: 5px 0;
}

.card-link {
    display: inline-block;
    color: #11998e;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.card-link:hover {
    text-decoration: underline;
}

/* Benefits */
.veci-benefits {
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.benefit-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* CTA VECI */
.veci-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.veci-cta h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.veci-cta p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Help Section */
.veci-help {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.veci-help h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.veci-help p {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
}

.help-contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.help-link {
    display: inline-block;
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-link:hover {
    border-color: #11998e;
    color: #11998e;
    transform: translateY(-2px);
}

/* ===================================================
   BUTTONS
   =================================================== */

.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button-primary {
    background: #667eea;
    color: white;
}

.button-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.button-secondary:hover {
    background: #667eea;
    color: white;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 992px) {
    .bagsgo-myaccount-dashboard,
    .bagsgo-veci-landing {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 30px 25px;
    }
    
    .dashboard-welcome {
        font-size: 26px;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .veci-hero {
        padding: 40px 25px;
    }
    
    .veci-title {
        font-size: 32px;
    }
    
    .veci-portal-button {
        padding: 18px 35px;
        font-size: 16px;
    }
    
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 25px 20px;
    }
    
    .dashboard-welcome {
        font-size: 22px;
    }
    
    .dashboard-member-since {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-icon {
        font-size: 32px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .veci-hero {
        padding: 30px 20px;
    }
    
    .veci-title {
        font-size: 26px;
    }
    
    .veci-subtitle {
        font-size: 16px;
    }
    
    .veci-portal-button {
        padding: 16px 30px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .button {
        width: 100%;
    }
    
    .help-contacts {
        flex-direction: column;
    }
    
    .help-link {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .dashboard-welcome {
        font-size: 20px;
    }
    
    .dashboard-widget {
        padding: 20px;
    }
    
    .action-card {
        padding: 15px;
    }
    
    .veci-hero {
        padding: 25px 15px;
    }
    
    .veci-title {
        font-size: 22px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card-title {
        font-size: 20px;
    }
}
