/* 
 * Gamevers - User Account Page Styles 
 * Shortcode: [gv_user_account]
 */

.gv-user-account-wrapper {
    width: 100%;
    max-width: 1400px;
    /* Wider for dashboard */
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* --- Layout --- */
.gv-acc-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    /* Prevent sidebar from stretching full height */
}

/* --- Sidebar --- */
.gv-acc-sidebar {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    position: sticky;
    top: 40px;
    /* Sticks when scrolling */
}

.gv-acc-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gv-acc-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    border-radius: 50%;
}

.gv-acc-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.gv-acc-avatar-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #00e676;
    /* Gamevers green/accent */
    color: #121212;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gv-acc-avatar-icon:hover {
    transform: scale(1.1);
}

.gv-acc-name {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.gv-acc-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.gv-acc-status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.gv-trust-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.gv-trust-tier-badge i {
    font-size: 0.85em;
}
.gv-trust-tier-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.gv-trust-tier-hint {
    font-size: 0.78em;
    color: rgba(255,255,255,0.4);
}

.gv-acc-email,
.gv-acc-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    margin: 0;
}

.gv-acc-email i,
.gv-acc-phone i {
    font-size: 0.85em;
    opacity: 0.7;
    flex-shrink: 0;
}

.gv-acc-logout {
    font-size: 13px;
    color: #00e676;
    text-decoration: none;
    transition: color 0.2s;
}

.gv-acc-logout:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Navigation --- */
.gv-acc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gv-acc-nav>ul>li {
    margin-bottom: 8px;
}

.gv-acc-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gv-acc-nav-link i,
.gv-acc-nav-label i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
    color: #777;
    transition: color 0.2s ease;
}

.gv-acc-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.gv-acc-nav-link.active {
    background: rgba(0, 230, 118, 0.1);
    /* Subtle accent bg */
    color: #fff;
    font-weight: 500;
    border-left: 3px solid #00e676;
    /* Accent thick border */
}

.gv-acc-nav-link.active i {
    color: #00e676;
}

.gv-acc-nav-group {
    margin-top: 24px !important;
    /* Spacing before sub-menu group */
}

.gv-acc-nav-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: default;
}

.gv-acc-chevron {
    margin-left: auto;
    margin-right: 0 !important;
    font-size: 12px !important;
}

.gv-acc-subnav {
    padding-left: 36px !important;
    /* Indent sub items */
    margin-top: 8px !important;
}

.gv-acc-subnav .gv-acc-nav-link {
    padding: 8px 12px;
    font-size: 14px;
    border-left: none;
    /* No green border for sub items */
}

.gv-acc-subnav .gv-acc-nav-link.active {
    background: transparent;
    color: #00e676;
}

/* --- Main Content --- */
.gv-acc-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.gv-acc-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gv-acc-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}

.gv-acc-page-title {
    font-size: 32px;
    margin: 0;
    color: #fff;
}

.gv-acc-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.gv-acc-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.gv-acc-back-btn i {
    font-size: 12px;
}

.gv-order-details-loader {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #999;
}

.gv-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 230, 118, 0.1);
    border-top: 3px solid #00e676;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gv-error-msg {
    color: #ff1744;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}

.gv-order-details-content {
    min-height: 200px;
    position: relative;
    z-index: 10;
}

.gv-order-details-content .woocommerce-order-details,
.gv-order-details-content .woocommerce-customer-details {
    margin-top: 20px;
    color: #fff;
}

.gv-order-details-content table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.gv-order-details-content th,
.gv-order-details-content td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    color: #ccc;
}

.gv-order-details-content th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
}

.gv-order-details-content section {
    margin-bottom: 30px;
}

.gv-order-details-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

/* --- Order Status Tracker --- */
.gv-order-status-tracker {
    margin-bottom: 40px;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.gv-status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.gv-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.gv-status-icon-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

.gv-status-icon {
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.gv-status-check {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #00e676;
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #1a1a1a;
    animation: scaleIn 0.3s ease-out;
}

.gv-status-label {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-align: center;
    transition: color 0.3s ease;
}

/* Step States */
.gv-status-step.completed .gv-status-icon {
    background: rgba(0, 230, 118, 0.1);
    border-color: #00e676;
    color: #00e676;
}

.gv-status-step.completed .gv-status-label {
    color: #fff;
}

.gv-status-step.current .gv-status-icon {
    background: rgba(255, 234, 0, 0.1);
    border-color: #ffea00;
    color: #ffea00;
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.2);
    animation: pulseIcon 2s infinite;
}

.gv-status-step.current .gv-status-label {
    color: #ffea00;
    font-weight: 600;
}

.gv-status-step.failed .gv-status-icon {
    background: rgba(255, 23, 68, 0.1);
    border-color: #ff1744;
    color: #ff1744;
}

.gv-status-step.failed .gv-status-label {
    color: #ff1744;
    font-weight: 600;
}

/* Connecting Lines */
.gv-status-line {
    position: absolute;
    top: 25px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 5px, transparent 5px, transparent 10px);
    z-index: 1;
}

.gv-status-line-progress {
    position: absolute;
    top: 25px;
    left: 12.5%;
    height: 2px;
    background: #00e676;
    z-index: 1;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 234, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 234, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 234, 0, 0); }
}

@media (max-width: 600px) {
    .gv-status-label {
        font-size: 11px;
    }
    .gv-status-icon-wrap {
        width: 40px;
        height: 40px;
    }
    .gv-status-line, .gv-status-line-progress {
        top: 20px;
    }
}

.gv-acc-welcome-msg {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.gv-acc-inline-link {
    color: #00e676;
    text-decoration: none;
}

.gv-acc-inline-link:hover {
    text-decoration: underline;
}

/* --- Stats Grid --- */
.gv-acc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.gv-acc-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.gv-acc-nav-link-card {
    cursor: pointer;
}

.gv-acc-nav-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.gv-acc-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gv-acc-icon-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.gv-acc-icon-wrap i {
    font-size: 32px;
    color: #fff;
}

.gv-acc-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00e676;
    color: #121212;
    font-size: 12px;
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #222;
    /* Faux border to cut into icon wrap */
}

.gv-acc-stat-card h4 {
    margin: 0;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gv-acc-stat-value {
    margin: 8px 0 0 0;
    font-size: 24px;
    font-weight: bold;
    color: #00e676;
}

/* Guest View */
.gv-user-account-guest {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .gv-acc-container {
        grid-template-columns: 1fr;
    }

    .gv-acc-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .gv-acc-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gv-acc-nav>ul>li {
        margin-bottom: 0;
    }

    .gv-acc-nav-group,
    .gv-acc-subnav {
        display: none;
        /* Simplify nav on mobile for now */
    }
}

/* --- WooCommerce Integration (.gv-woocommerce-wrapper) --- */
.gv-woocommerce-wrapper {
    margin-top: 24px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

/* Headings inside WC wrappers */
.gv-woocommerce-wrapper h2,
.gv-woocommerce-wrapper h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
}

/* WooCommerce Tables */
.gv-woocommerce-wrapper table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.gv-woocommerce-wrapper table.shop_table th {
    background: rgba(30, 30, 30, 0.6);
    color: #fff;
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gv-woocommerce-wrapper table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.gv-woocommerce-wrapper table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.gv-woocommerce-wrapper table.shop_table tbody tr:hover td {
    background: rgba(40, 40, 40, 0.3);
}

.gv-woocommerce-wrapper table.shop_table a {
    color: #00e676;
    text-decoration: none;
}

.gv-woocommerce-wrapper table.shop_table a:hover {
    text-decoration: underline;
}

/* WC Buttons */
.gv-woocommerce-wrapper .button {
    background: #00e676 !important;
    color: #121212 !important;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.gv-woocommerce-wrapper .button:hover {
    background: #ffea00 !important;
    transform: translateY(-2px);
}

.gv-woocommerce-wrapper .button.view {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.gv-woocommerce-wrapper .button.view:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Mark buttons in tables */
.gv-woocommerce-wrapper mark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Form Styling */
.gv-woocommerce-wrapper form .form-row {
    margin-bottom: 20px;
}

.gv-woocommerce-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.gv-woocommerce-wrapper input[type="text"],
.gv-woocommerce-wrapper input[type="password"],
.gv-woocommerce-wrapper input[type="email"],
.gv-woocommerce-wrapper input[type="tel"],
.gv-woocommerce-wrapper select,
.gv-woocommerce-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gv-woocommerce-wrapper input[type="text"]:focus,
.gv-woocommerce-wrapper input[type="password"]:focus,
.gv-woocommerce-wrapper input[type="email"]:focus,
.gv-woocommerce-wrapper select:focus,
.gv-woocommerce-wrapper textarea:focus {
    outline: none;
    border-color: #00e676;
    background: rgba(30, 30, 30, 1);
}

/* WC Messages & Notices */
.gv-woocommerce-wrapper .woocommerce-message,
.gv-woocommerce-wrapper .woocommerce-info,
.gv-woocommerce-wrapper .woocommerce-error {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-top: 3px solid #00e676;
    color: #ccc;
    list-style: none;
}

.gv-woocommerce-wrapper .woocommerce-error {
    border-top-color: #ff1744;
}

.gv-woocommerce-wrapper .woocommerce-info {
    border-top-color: #00b0ff;
}