/**
 * Version Notes:
 * File: /wp-content/plugins/um-web3-profile/assets/css/um-web3-style.css
 * Version: 1.3.2
 * Last Modified: 2025-11-26 08:30 PM
 * Changes:
 * - Fixed Profile Page regression: Restored transparent background for profile menu
 * - Fixed Profile Page text visibility: Ensured white/grey text on dark background
 * - Maintained "Nuclear" overrides for Account Page to keep it styled correctly
 * - Separated Account and Profile specific logic to prevent bleed-over
 * - Emergency Fix: Added nuclear overrides for Profile Body text color
 * - Emergency Fix: Added nuclear overrides for Profile Nav and Dropdown backgrounds
 * - Emergency Fix: Added nuclear overrides for Account Page Sidebar (Transparent)
 * - Emergency Fix: Added nuclear overrides for Account Page Labels (White text)
 */

/* Container & Variables */
.um-web3-design {
    font-family: 'Inter', 'Roboto', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #e2e8f0;
}

/* Glass Card */
.um-web3-card {
    background: var(--um-web3-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    overflow: visible !important;
    position: relative;
    margin-top: 30px;
}

/* --- ACCOUNT PAGE SPECIFIC OVERRIDES (High Specificity) --- */

/* 1. Kill the White Sidebar Box */
.um-web3-design .um-account-side,
.um-web3-design .um-account .um-account-side {
    background-color: rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    box-shadow: none !important;
}

/* 2. Fix the Tabs (White Links) */
.um-web3-design .um-account-side li a,
.um-web3-design .um-account .um-account-side li a {
    background-color: transparent !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 4px !important;
}

.um-web3-design .um-account-side li a:hover,
.um-web3-design .um-account .um-account-side li a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    text-shadow: 0 0 8px var(--um-web3-accent) !important;
}

/* 3. Fix Active Tab (Current) */
.um-web3-design .um-account-side li a.current,
.um-web3-design .um-account .um-account-side li a.current,
.um-web3-design .um-account-side li a.current:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--um-web3-accent) !important;
    border: 1px solid var(--um-web3-accent) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2) !important;
}

/* Icons in Tabs */
.um-web3-design .um-account-side li a .um-account-icon,
.um-web3-design .um-account-side li a i {
    color: inherit !important;
}

/* 4. Fix Inputs (Force Dark) - Applied to BOTH Profile and Account forms safely */
.um-web3-design .um-form input[type="text"],
.um-web3-design .um-form input[type="password"],
.um-web3-design .um-form input[type="email"],
.um-web3-design .um-form textarea,
.um-web3-design .um-form select,
.um-web3-design .um-account input[type="text"],
.um-web3-design .um-account input[type="password"] {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

.um-web3-design .um-form input:focus,
.um-web3-design .um-account input:focus {
    border-color: var(--um-web3-accent) !important;
    box-shadow: 0 0 10px var(--um-web3-accent) !important;
    outline: none !important;
}

/* 5. Fix Buttons (Shared) */
.um-web3-design .um-account .um-button,
.um-web3-design input[type="submit"].um-button,
.um-web3-design .um-button.um-alt {
    background: linear-gradient(45deg, var(--um-web3-accent), #7928ca) !important;
    background-color: transparent !important;
    color: white !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 24px !important;
    opacity: 1 !important;
}

.um-web3-design .um-account .um-button:hover,
.um-web3-design input[type="submit"].um-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--um-web3-accent) !important;
}

/* --- PROFILE PAGE SPECIFIC FIXES (Restored) --- */

/* Fix Profile Header & Meta */
/* Fix Profile Header & Meta */
.um-web3-design .um-header {
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.um-web3-design .um-profile-photo {
    order: 1;
    margin-bottom: 10px !important;
}

.um-web3-design .um-profile-meta {
    order: 2;
    margin-bottom: 15px !important;
}

/* Force Profile Meta Text Color */
.um-web3-design .um-meta-text {
    color: #94a3b8 !important;
}

.um-web3-design .um-name a {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Fix Profile Nav (The "Menu" that looked wrong) */
.um-web3-design .um-profile-nav {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 5px;
    display: flex;
    align-items: center;
    width: 100% !important;
    /* Ensure full width */
    box-sizing: border-box;
}

/* Profile Nav Items */
.um-web3-design .um-profile-nav-item a {
    background: transparent !important;
    color: #cbd5e1 !important;
    /* Force text color */
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 20px !important;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

/* Active Profile Nav Item */
.um-web3-design .um-profile-nav-item.active a {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--um-web3-accent) !important;
    border: 1px solid var(--um-web3-accent) !important;
    box-shadow: 0 0 10px var(--um-web3-accent), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Icons in Profile Nav */
.um-web3-design .um-profile-nav-item a i {
    color: inherit !important;
    margin-right: 8px;
}

/* --- GLOBAL DROPDOWN FIXES --- */
div.um-dropdown {
    background: transparent !important;
    border: none !important;
    z-index: 99999 !important;
    text-align: left !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 200px !important;
    /* Set width here */
}

.um-web3-design .um-dropdown .um-dropdown-b {
    background-color: #0f172a !important;
    border: 1px solid var(--um-web3-accent) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 12px var(--um-web3-accent) !important;
    padding: 12px 0 !important;
    width: 100% !important;
    /* Fill container */
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 10px !important;
}

.um-web3-design .um-dropdown ul li a {
    color: #e2e8f0 !important;
    font-size: 15px !important;
    padding: 14px 25px !important;
    transition: all 0.2s ease;
    background: transparent !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-decoration: none !important;
    display: block !important;
    text-align: left !important;
}

.um-web3-design .um-dropdown ul li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 32px !important;
    text-shadow: 0 0 8px var(--um-web3-accent);
    border-left: 4px solid var(--um-web3-accent);
}

/* Gear Icon & Label (Moved Below Name) */
.um-web3-design .um-profile-edit {
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
    order: 3;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.um-web3-design .um-profile-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--um-web3-accent);
}

.um-web3-design .um-profile-edit::before {
    content: "Edit Profile";
    color: var(--um-web3-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-right: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

.um-web3-design .um-profile-edit i {
    color: #fff !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
}

.um-web3-design .um-profile-edit:hover i {
    color: var(--um-web3-accent) !important;
    transform: rotate(90deg);
}

/* Avatar & Header (Base Styles) */
.um-web3-design .um-profile-photo a.um-profile-photo-img {
    border-radius: 50%;
    border: 4px solid var(--um-web3-accent);
    box-shadow: 0 0 15px var(--um-web3-accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .um-web3-design .um-account .um-account-side {
        margin-bottom: 20px !important;
    }

    .um-web3-design .um-account .um-account-main {
        padding-left: 0 !important;
    }

    /* Ensure profile nav stacks nicely on mobile */
    .um-web3-design .um-profile-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .um-web3-design .um-profile-nav-item {
        flex: 1 0 auto;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* --- EMERGENCY FIXES FOR PROFILE PAGE --- */

/* Force Profile Body Text Color */
.um-web3-design .um-profile-body,
.um-web3-design .um-profile-body p,
.um-web3-design .um-profile-body div,
.um-web3-design .um-profile-body span,
.um-web3-design .um-profile-body label {
    color: #e2e8f0 !important;
}

/* Fix Edit Profile Menu (Secondary Nav) Background */
.um-web3-design .um-profile-nav,
.um-web3-design .um-profile-nav-item,
.um-web3-design .um-profile-nav-item a {
    background-color: transparent !important;
    background: transparent !important;
}

/* Ensure Dropdowns are Dark (Fixes White Background Issue) */
.um-web3-design .um-dropdown,
.um-web3-design .um-dropdown ul,
.um-web3-design .um-dropdown li,
.um-web3-design .um-dropdown a {
    background-color: transparent !important;
    background: transparent !important;
}

.um-web3-design .um-dropdown .um-dropdown-b {
    background-color: #0f172a !important;
    border: 1px solid var(--um-web3-accent) !important;
}

/* Fix Edit Profile Form Inputs specifically */
.um-web3-design .um-profile-body input[type="text"],
.um-web3-design .um-profile-body input[type="password"],
.um-web3-design .um-profile-body input[type="email"],
.um-web3-design .um-profile-body textarea,
.um-web3-design .um-profile-body select {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* === EMERGENCY FIXES FOR ACCOUNT PAGE === */

/* 1. Kill the White Sidebar Box */
/* Using body and html to increase specificity to the max */
html body .um-web3-design .um-account-side,
html body .um-web3-design .um-account-side ul,
html body .um-web3-design .um-account-side li,
html body .um-web3-design .um-account-side li a,
html body .um-web3-design .um-account-side li a:hover,
html body .um-web3-design .um-account-side li a.current,
html body .um-web3-design .um-account-side li a .um-account-title,
html body .um-web3-design .um-account-side li a .um-account-icon,
html body .um-web3-design .um-account-side li a .um-account-arrow {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

/* Active State for Sidebar Links */
html body .um-web3-design .um-account-side li a.current {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--um-web3-accent) !important;
    color: var(--um-web3-accent) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
}

/* Hover State for Sidebar Links */
html body .um-web3-design .um-account-side li a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* 2. Force Field Labels White (Fix Invisible Text) */
html body .um-web3-design .um-field-label,
html body .um-web3-design .um-field-label label,
html body .um-web3-design .um-field-label span {
    color: #e2e8f0 !important;
}

/* 3. Force Section Headings White */
html body .um-web3-design .um-account-heading,
html body .um-web3-design .um-account-main h3,
html body .um-web3-design .um-account-main h4 {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 4. Force Account Main Text */
html body .um-web3-design .um-account-main,
html body .um-web3-design .um-account-main p {
    color: #94a3b8 !important;
}

/* 5. Fix Account Icons */
html body .um-web3-design .um-account-side li a i,
html body .um-web3-design .um-account-side li a .um-account-icon {
    color: inherit !important;
}

/* --- PROFILE PAGE REDESIGN (Grid Layout & Cards) --- */

/* Grid Container */
.um-web3-profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

/* Sidebar (Photo & Name) */
.um-web3-sidebar {
    text-align: center;
}

/* Content Area (Fields & Menu) */
.um-web3-content {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Profile Header Adjustments for Sidebar */
.um-web3-design .um-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Profile Photo Centering in Sidebar */
.um-web3-design .um-profile-photo {
    margin: 0 auto 15px auto !important;
    display: block !important;
}

/* Field Cards Styling */
.um-web3-design .um-profile-body .um-field {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.um-web3-design .um-profile-body .um-field:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Field Labels */
.um-web3-design .um-field-label {
    margin-bottom: 12px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.um-web3-design .um-field-label label {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.um-web3-design .um-field-label .um-field-icon {
    margin-right: 10px;
    font-size: 18px;
    color: #fff;
}

/* Field Values */
.um-web3-design .um-field-value {
    color: var(--um-web3-accent) !important;
    font-size: 16px !important;
    font-weight: 500;
    padding-left: 5px;
    word-break: break-all;
    /* Handle long wallet addresses */
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
    .um-web3-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .um-web3-sidebar {
        margin-bottom: 20px;
    }
}

/* --- REGISTRATION UPLOAD BUTTON FIX --- */

/* Force Upload Button Style (Targeting by data-modal attribute) */
html body .um-web3-design a.um-button[data-modal="um_upload_single"] {
    background: linear-gradient(45deg, var(--um-web3-accent), #7928ca) !important;
    background-color: transparent !important;
    color: white !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 30px !important;
    opacity: 1 !important;
    min-width: 160px !important;
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
}

html body .um-web3-design a.um-button[data-modal="um_upload_single"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 20px var(--um-web3-accent) !important;
    color: #fff !important;
    background: linear-gradient(45deg, #7928ca, var(--um-web3-accent)) !important;
}

/* === END OF FILE (FILENAME: /wp-content/plugins/um-web3-profile/assets/css/um-web3-style.css) === */