/* Profile Section Styles */

.profile-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.profile-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #202020;
    margin: 0 0 0.5rem 0;
}

.profile-description {
    font-size: 0.875rem;
    color: #585858;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Display mode */
.profile-display {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 0.75rem;
    padding: 1rem;
}

.profile-name-display,
.profile-empty {
    margin-bottom: 1rem;
}

.profile-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #585858;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.profile-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #202020;
}

/* Edit mode */
.profile-edit {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 0.75rem;
    padding: 1rem;
}

.profile-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background: #ffffff;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.profile-input:focus {
    outline: none;
    border-color: #586878;
    box-shadow: 0 0 0 2px rgba(88, 104, 120, 0.1);
}

/* Buttons */
.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.profile-btn-edit {
    width: 100%;
    background: #586878;
    color: #ffffff;
}

.profile-btn-edit:hover {
    background: #4a5a68;
}

.profile-btn-save {
    flex: 1;
    background: #059669;
    color: #ffffff;
}

.profile-btn-save:hover {
    background: #047857;
}

.profile-btn-cancel {
    flex: 1;
    background: #e8e8e8;
    color: #585858;
}

.profile-btn-cancel:hover {
    background: #d8d8d8;
}

.profile-btn-delete {
    background: transparent;
    color: #906060;
    border: 1px solid #906060;
}

.profile-btn-delete:hover {
    background: #906060;
    color: #ffffff;
}

/* Install App Section */
.profile-install-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.profile-btn-install {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    display: none; /* Hidden by default, shown by JS */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.profile-btn-install:hover {
    background: #333;
}

/* iOS Install Popup */
.ios-install-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-install-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ios-install-modal {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 85vh;
    width: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ios-install-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.ios-install-close:hover {
    background: #e0e0e0;
}

.ios-install-modal h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.ios-install-modal p {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.ios-install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ios-install-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ios-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

.ios-step-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-left: 0.5rem;
}

.ios-install-step > span {
    display: flex;
    align-items: center;
}

.ios-step-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #e8e8e8;
}
