/**
 * SOLIUS Profile Component - Mobile Layout
 * Based on Figma Design Specifications (October 2025)
 * 
 * Features:
 * - Single column vertical stacking
 * - Avatar card, Main Info card, Account Info card, Portfolio card
 * - Figma-exact colors and spacing
 */

@media (max-width: 768px) {
    /* Profile Container */
    .profile-component {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 16px;
        
        width: 100%;
        min-height: calc(100vh - 48px - 98px);
    }
    
    /* Main Container - Single Column */
    .profile-content-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 16px;
        
        width: 100%;
        max-width: 360px;
        min-height: auto;
        
        background: transparent;
        border-radius: 20px;
        
        flex: none;
        margin: 0 auto;
    }
    
    /* ============================================
       AVATAR CARD
       ============================================ */
    
    .profile-avatar-card {
        width: 100%;
        min-height: 184px;
        
        background: linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
        border-radius: 20px;
        
        flex: none;
        order: 0;
        align-self: stretch;
        
        position: relative;
    }
    
    /* Card Title */
    .profile-avatar-card .card-title {
        position: absolute;
        width: auto;
        height: auto;
        left: 24px;
        top: 16px;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        
        background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Avatar */
    .profile-avatar-large {
        position: absolute;
        width: 100px;
        height: 100px;
        left: calc(50% - 100px/2);
        top: calc(50% - 100px/2 + 18px);
        
        background: #FCB9FF;
        border-radius: 100px;
        overflow: hidden;
    }
    
    .profile-avatar-large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Camera Overlay - 🔥 MOBILE FIX: Transparent, spans full avatar */
    .profile-camera-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        cursor: pointer;
        background: transparent;
        border-radius: 100px; /* Match avatar border radius */
        
        /* Add subtle hover effect so user knows it's clickable */
        transition: background 0.2s ease;
    }
    
    .profile-camera-overlay:hover {
        background: rgba(0, 0, 0, 0.1); /* Very subtle dark overlay on hover */
    }
    
    .profile-camera-overlay:active {
        background: rgba(0, 0, 0, 0.2); /* Slightly darker on tap */
    }
    
    /* ============================================
       MAIN INFORMATION CARD
       ============================================ */
    
    .profile-main-info-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 16px;
        
        width: 100%;
        min-height: auto;
        
        background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
        border-radius: 20px;
        
        flex: none;
        order: 1;
    }
    
    .profile-main-info-card .card-title {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        
        background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
        margin: 0;
        flex: none;
        order: 0;
    }
    
    /* Form Fields Container */
    .profile-form-fields {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 24px;
        
        width: 100%;
        min-height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    /* Display Name Field */
    .profile-field {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 6px;
        
        width: 100%;
        height: auto;
        
        flex: none;
        align-self: stretch;
    }
    
    .profile-field-label {
        width: 100%;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        color: #536285;
        
        flex: none;
        order: 0;
        align-self: stretch;
    }
    
    .profile-field-input {
        box-sizing: border-box;
        
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 8px 16px;
        gap: 8px;
        
        width: 100%;
        min-height: 40px;
        
        background: #0D1529;
        border-radius: 20px;
        border: none;
        outline: none;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #FFFFFF;
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    /* Connected Wallet Field */
    .profile-wallet-field {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        min-height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    .profile-wallet-label {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #536285;
        
        flex: none;
        order: 0;
    }
    
    .profile-wallet-address-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        min-height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
        overflow: hidden;
    }
    
    .profile-wallet-address {
        width: 100%;
        min-height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #FFFFFF;
        word-wrap: break-word;
        overflow-wrap: break-word;
        
        flex: 1;
        order: 0;
        min-width: 0;
    }
    
    .profile-copy-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        
        flex-shrink: 0;
        order: 1;
        
        transition: transform 0.2s;
    }
    
    .profile-copy-btn:active {
        transform: scale(0.9);
    }
    
    .profile-copy-btn svg path {
        stroke: #7589B9;
        stroke-width: 2px;
    }
    
    /* Disconnect Button */
    .profile-disconnect-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 0px;
        gap: 8px;
        
        width: 100%;
        min-height: 48px;
        border-radius: 12px;
        
        background: transparent;
        border: none;
        cursor: pointer;
        
        flex: none;
        order: 2;
        align-self: stretch;
        
        transition: all 0.2s;
    }
    
    .profile-disconnect-btn:active {
        transform: scale(0.98);
        background: rgba(255, 85, 88, 0.1);
    }
    
    .profile-disconnect-btn svg {
        width: 24px;
        height: 24px;
        flex: none;
        order: 0;
    }
    
    .profile-disconnect-btn svg path {
        stroke: #FF5558;
        stroke-width: 2px;
    }
    
    .profile-disconnect-btn span {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        text-align: center;
        color: #FF5558;
        
        flex: none;
        order: 1;
    }
    
    /* ============================================
       ACCOUNT INFORMATION CARD
       ============================================ */
    
    .profile-account-info-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 16px;
        
        width: 100%;
        min-height: auto;
        
        background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
        border-radius: 20px;
        
        flex: none;
        order: 2;
    }
    
    .profile-account-info-card .card-title {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        
        background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
        margin: 0;
        flex: none;
        order: 0;
    }
    
    /* Info Items Container */
    .profile-info-items {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 16px;
        
        width: 100%;
        height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    /* Info Item */
    .profile-info-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 8px 24px;
        gap: 16px;
        
        width: 100%;
        min-height: 68px;
        
        background: rgba(0, 9, 30, 0.2);
        border-radius: 20px;
        
        flex: none;
        align-self: stretch;
    }
    
    .profile-info-item-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        min-height: auto;
        
        flex: 1;
        order: 0;
    }
    
    .profile-info-item-title {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #FFFFFF;
        
        flex: none;
        order: 0;
        align-self: stretch;
    }
    
    .profile-info-item-value {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: rgba(255, 255, 255, 0.7);
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    .profile-info-item-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
        flex-shrink: 0;
        order: 1;
    }
    
    /* Account Info Items (Desktop class names used in mobile too) */
    .account-info-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 8px 24px;
        gap: 16px;
        
        width: 100%;
        min-height: 68px;
        
        background: rgba(0, 9, 30, 0.2);
        border: 1px solid rgba(85, 93, 255, 0.3);
        border-radius: 20px;
        
        flex: none;
        align-self: stretch;
        
        position: relative;
        
        /* Glossy effect */
        box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    }
    
    .account-info-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        min-height: auto;
        
        flex: 1;
        order: 0;
    }
    
    .account-info-label {
        width: 100%;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #FFFFFF;
        
        flex: none;
        order: 0;
        align-self: stretch;
    }
    
    .account-info-value {
        width: 100%;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: rgba(255, 255, 255, 0.7);
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    .account-info-icon {
        width: 24px;
        min-width: 24px;
        height: 24px;
        flex-shrink: 0;
        order: 1;
        
        /* Icon positioned top-right */
        align-self: flex-start;
    }
    
    /* ============================================
       MISSIONS CARD (Reused from Overview)
       ============================================ */
    
    .profile-missions-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0px;
        
        width: 100%;
        min-height: auto;
        
        background: linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
        border-radius: 20px;
        
        flex: none;
        order: 3;
    }
    
    .profile-missions-card .card-title {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 16px 24px;
        gap: 8px;
        
        width: 100%;
        min-height: 60px;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        
        background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
        margin: 0;
        flex: none;
        order: 0;
        align-self: stretch;
    }
    
    /* ============================================
       PORTFOLIO CARD (Reused from Overview)
       ============================================ */
    
    .profile-portfolio-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        
        width: 100%;
        min-height: auto;
        
        background: linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
        border-radius: 20px;
        
        flex: none;
        order: 4;
        
        position: relative;
    }
    
    .profile-portfolio-card .portfolio-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        gap: 8px;
        
        width: 100%;
        min-height: 60px;
        
        flex: none;
        order: 0;
        align-self: stretch;
    }
    
    .profile-portfolio-card .portfolio-header h3 {
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        
        background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
        margin: 0;
        flex: none;
        order: 0;
    }
    
    .profile-portfolio-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 24px 24px;
        gap: 16px;
        
        width: 100%;
        min-height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
        flex-grow: 1;
        
        position: relative;
        z-index: 1;
    }
    
    
    /* Top Assets in Portfolio */
    .profile-top-assets {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 12px;
        
        width: 100%;
        height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
        z-index: 1;
    }
    
    .profile-top-assets-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        min-height: auto;
        
        flex: none;
        order: 0;
    }
    
    .profile-top-assets-header h4 {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
        color: #FFFFFF;
        
        margin: 0;
        flex: none;
        order: 0;
    }
    
    .profile-assets-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        
        width: 100%;
        height: auto;
        
        flex: none;
        order: 1;
        align-self: stretch;
    }
    
    .profile-asset-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 16px;
        
        width: 100%;
        min-height: 20px;
        
        flex: none;
        align-self: stretch;
    }
    
    .profile-asset-name {
        width: auto;
        height: auto;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: #FFFFFF;
        
        flex: none;
        order: 0;
    }
    
    .profile-asset-progress {
        width: 84px;
        min-width: 84px;
        height: 12px;
        background: rgba(83, 98, 133, 0.5);
        border-radius: 100px;
        
        position: relative;
        flex: none;
        order: 1;
    }
    
    .profile-asset-progress-fill {
        position: absolute;
        height: 12px;
        left: 0px;
        top: 0;
        border-radius: 100px;
    }
    
    /* Set Button with Glow */
    .profile-set-button {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 32px;
        gap: 8px;
        
        width: 100%;
        min-height: 48px;
        
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 40px;
        cursor: pointer;
        
        flex: none;
        order: 2;
        align-self: stretch;
        z-index: 2;
        
        position: relative;
        overflow: visible;
        isolation: isolate;
        
        /* Glossy effect */
        box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
        
        transition: all 0.2s;
    }
    
    .profile-set-button-glow {
        position: absolute;
        width: 100px;
        height: 50px;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(266.42deg, #000DFF -21.15%, rgba(85, 93, 255, 0) 88.34%);
        border: 2px solid #969CFF;
        filter: blur(10px);
        border-radius: 40px;
        z-index: -1;
        pointer-events: none;
    }
    
    .profile-set-button:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .profile-set-button:hover {
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 
            inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
            0 6px 16px rgba(0, 13, 255, 0.4);
    }
    
    .profile-set-button span {
        width: auto;
        height: auto;
        position: relative;
        z-index: 1;
        
        font-family: 'Montserrat', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #FFFFFF;
        
        flex: none;
        order: 0;
    }
}

/* ============================================
   HIDE DESKTOP PROFILE LAYOUT ON MOBILE
   ============================================ */

@media (min-width: 769px) {
    .profile-content.mobile-layout {
        display: none !important;
    }
    
    .profile-content.desktop-layout {
        display: flex !important;
    }
}

