/* Profile Page Styles */
#profile-page {
    padding: 24px;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Profile Header Section */
.profile-header-section {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.profile-avatar-container {
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 16px;
}

.btn-change-avatar {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-avatar:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Profile Form */
.profile-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
}

.form-section {
    margin-bottom: 48px;
}

.form-section:last-of-type {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #9146FF;
}

.form-input.readonly {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.form-hint.warning {
    color: #fbbf24;
}

/* Stream Key Container */
.stream-key-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.stream-key-input {
    flex: 1;
    font-family: monospace;
}

.btn-show-key,
.btn-copy-key {
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-key:hover,
.btn-copy-key:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-show-key svg,
.btn-copy-key svg {
    width: 20px;
    height: 20px;
}

.btn-show-key.showing svg {
    stroke: #9146FF;
}

.btn-regenerate-key {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 71, 71, 0.5);
    color: #ff4747;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-regenerate-key:hover {
    background: rgba(255, 71, 71, 0.1);
    border-color: #ff4747;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #9146FF;
    color: white;
}

.btn-primary:hover {
    background: #7c2ff2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Guest State */
.guest-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.guest-state-content {
    text-align: center;
    max-width: 400px;
}

.guest-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
    opacity: 0.5;
}

.guest-state-content h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.guest-state-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header-section {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}