/**
 * WPForgeHub — Customer Portal Stylesheet
 */

/* Portal Card Layout */
.woocommerce-account .woocommerce {
    max-width: 1120px;
    margin: 40px auto;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 32px;
    color: #f8fafc;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    width: 26% !important;
    float: left !important;
    border-right: 1px solid #334155;
    padding-right: 24px;
    box-sizing: border-box;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
    transform: translateX(3px);
}

/* Content Area */
.woocommerce-MyAccount-content {
    width: 70% !important;
    float: right !important;
    color: #f8fafc;
    box-sizing: border-box;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #38bdf8;
    font-weight: 800;
    margin-top: 0;
}

/* Welcome Banner */
.wpfh-cp-welcome-banner {
    background: linear-gradient(135deg, #065f46, #047857);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.35);
}

.wpfh-cp-banner-icon {
    font-size: 32px;
}

.wpfh-cp-banner-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.wpfh-cp-banner-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #d1fae5;
}

/* License Box */
.wpfh-cp-license-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.wpfh-cp-license-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #38bdf8;
    font-weight: 800;
}

.wpfh-cp-license-box p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 12px;
}

.wpfh-cp-license-key-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 10px 14px;
}

.wpfh-cp-license-key-wrap code {
    font-size: 15px;
    color: #10b981;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-grow: 1;
    background: transparent;
}

.wpfh-cp-copy-key-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s;
}

.wpfh-cp-copy-key-btn:hover {
    background: #1d4ed8 !important;
}

/* Downloads & Orders Table */
.woocommerce-MyAccount-content table.shop_table {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f8fafc;
    width: 100%;
    border-collapse: separate;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px;
    border-bottom: 1px solid #334155;
}

.woocommerce-MyAccount-content table.shop_table td {
    border-color: #334155;
    padding: 14px;
    font-size: 14px;
}

.woocommerce-MyAccount-downloads-file,
.woocommerce-MyAccount-content a.button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.35);
}

.woocommerce-MyAccount-downloads-file:hover,
.woocommerce-MyAccount-content a.button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

/* Magic Link Box */
.wpfh-cp-magic-link-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.wpfh-cp-magic-link-box h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #38bdf8;
    font-weight: 800;
}

.wpfh-cp-magic-link-box p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.wpfh-cp-magic-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpfh-cp-magic-input-group input[type="email"] {
    flex: 1;
    min-width: 220px;
    background: #1e293b;
    border: 1px solid #475569;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
}

.wpfh-cp-magic-input-group button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.wpfh-cp-feedback-msg {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Support Desk */
.wpfh-cp-support-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 28px;
}

.wpfh-cp-support-header h3 {
    margin: 0;
    font-size: 20px;
    color: #38bdf8;
    font-weight: 800;
}

.wpfh-cp-support-header p {
    margin: 6px 0 20px;
    font-size: 13px;
    color: #94a3b8;
}

.wpfh-cp-form-group {
    margin-bottom: 16px;
}

.wpfh-cp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.wpfh-cp-form-group input,
.wpfh-cp-form-group select,
.wpfh-cp-form-group textarea {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.wpfh-cp-form-group input:focus,
.wpfh-cp-form-group select:focus,
.wpfh-cp-form-group textarea:focus {
    border-color: #38bdf8;
    outline: none;
}

.wpfh-cp-form-submit button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

/* Forms: Edit Account & Login */
.woocommerce-EditAccountForm input.input-text,
.woocommerce-form-login input.input-text {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #475569 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-form-login button.button,
.woocommerce-EditAccountForm button.button {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    cursor: pointer !important;
}

/* Mobile Responsive */
@media (max-width: 820px) {
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
        border: none;
        padding: 0;
    }
    .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }
}
