/**
 * WCC My Account Styles
 * Modern, clean design for WooCommerce My Account pages
 */

/* === General Layout === */
.wcc-my-account-wrapper {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.wcc-my-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Account Header === */
.wcc-account-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #496F32 0%, #629543 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wcc-account-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
}

.wcc-account-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* === Grid Layout === */
.wcc-account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .wcc-account-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === Navigation Sidebar === */
.wcc-account-navigation {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wcc-nav-title {
    padding: 25px 30px 20px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #484848;
    border-bottom: 1px solid #eee;
}

.wcc-account-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.wcc-nav-item {
    margin: 0;
}

.wcc-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    color: #7A7A7A;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.wcc-nav-link:hover {
    color: #496F32;
    background: #f0f5ed;
}

.wcc-nav-item.is-active .wcc-nav-link {
    color: #496F32;
    background: #f0f5ed;
    font-weight: 600;
}

.wcc-nav-item.is-active .wcc-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #496F32;
}

.wcc-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* === Content Area === */
.wcc-account-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .wcc-account-content {
        padding: 25px 20px;
    }
}

/* === Dashboard Styles === */
.wcc-dashboard-content {
    max-width: 100%;
}

.wcc-welcome-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.wcc-welcome-box h2 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #333;
}

.wcc-welcome-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.wcc-welcome-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #667eea;
}

.wcc-welcome-text a:hover {
    border-bottom-style: solid;
}

/* === Stats Grid === */
.wcc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.wcc-stat-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.wcc-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.wcc-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.wcc-stat-icon i {
    font-size: 24px;
    color: white;
}

.wcc-stat-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #333;
}

.wcc-recent-orders {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
}

.wcc-recent-orders li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wcc-recent-orders li:last-child {
    border-bottom: none;
}

.wcc-recent-orders a {
    text-decoration: none;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.wcc-recent-orders a:hover {
    color: #667eea;
}

.wcc-order-total {
    font-weight: 600;
    color: #333;
}

.wcc-view-all,
.wcc-edit-link {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.wcc-view-all:hover,
.wcc-edit-link:hover {
    text-decoration: underline;
}

.wcc-address-preview {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wcc-account-info {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
}

.wcc-account-info li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.wcc-account-info strong {
    color: #333;
    margin-right: 5px;
}

/* === Orders Table === */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.woocommerce-orders-table thead {
    background: #f8f9fa;
}

.woocommerce-orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-orders-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.woocommerce-orders-table .woocommerce-button {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.woocommerce-orders-table .woocommerce-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* === Forms === */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 600px;
}

.woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-address-fields .woocommerce-form-row {
    margin-bottom: 25px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm select,
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-EditAccountForm select:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button {
    background: #667eea;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-EditAccountForm .button:hover,
.woocommerce-address-fields .button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* === Messages & Notices === */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.woocommerce-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.woocommerce-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* === Responsive === */
@media (max-width: 768px) {
    .wcc-account-header {
        padding: 30px 15px;
    }
    
    .wcc-account-title {
        font-size: 28px;
    }
    
    .wcc-account-navigation {
        position: static;
    }
    
    .wcc-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .woocommerce-orders-table {
        font-size: 14px;
    }
    
    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 12px 8px;
    }
}