/* ================================
   PHONE MOCKUP PREVIEW
   ================================ */

.phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* ================================
   IFRAME BIO PREVIEW STYLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #000000;
    position: relative;
    overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: hsla(262,82%,3%,1);
}

/* Bio Container for iframe */
.bio-container {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0;
    padding: 32px 24px;
    position: relative;
    border: none;
    box-shadow: none;
}

.bio-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.2);
}

.bio-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.bio-name {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1d9bf0, #0c7abf);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    box-shadow: 0 0 20px rgba(29, 155, 240, 0.5);
}

.under-review-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.bio-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto 20px auto;
}

/* Social Links */
.bio-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Bento Grid Layout for Links */
.bio-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.bio-link-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 16px;
    text-align: left;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 12px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.powered-by {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.powered-by a {
    color: rgba(102, 126, 234, 0.9);
    text-decoration: none;
    font-weight: 600;
}

/* Scrollbar styling */
.bio-container::-webkit-scrollbar {
    width: 4px;
}

.bio-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.bio-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.bio-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Bio Preview Content */
.preview-mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: hsla(262, 82%, 3%, 1);
    background-image: 
        radial-gradient(circle at 93% 63%, hsla(217.59493670886076, 100%, 30%, 1) 8.392121895570533%, transparent 38.584065253664996%),
        radial-gradient(circle at 33% -7%, hsla(0, 0%, 0%, 1) 8.392121895570533%, transparent 22.10878124098502%),
        radial-gradient(circle at 84% 7%, hsla(0, 0%, 0%, 1) 8.392121895570533%, transparent 22.558651527792346%),
        radial-gradient(circle at 14% 5%, hsla(0, 0%, 0%, 1) 8.392121895570533%, transparent 22.558651527792346%),
        radial-gradient(circle at 7% 96%, hsla(0, 0%, 0%, 1) 8.392121895570533%, transparent 22.558651527792346%),
        radial-gradient(circle at 93% 90%, hsla(0, 0%, 0%, 1) 8.392121895570533%, transparent 22.558651527792346%),
        radial-gradient(circle at 3% 61%, hsla(279.7894736842105, 67%, 27%, 1) 8.392121895570533%, transparent 39.67138181429644%),
        radial-gradient(circle at 94% 59%, hsla(279.7894736842105, 67%, 27%, 1) 8.392121895570533%, transparent 49.58090142552271%),
        radial-gradient(circle at 48% 63%, hsla(217.68844221105527, 100%, 39%, 1) 8.392121895570533%, transparent 34.815367581495366%),
        radial-gradient(circle at 96% 78%, hsla(217.59493670886076, 100%, 30%, 1) 8.392121895570533%, transparent 31.77166380372925%);
}

.bio-preview-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow-y: auto;
}

.bio-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: auto;
}

.bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    overflow: hidden;
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bio-name .verified-badge {
    width: 16px;
    height: 16px;
    background: #06b6d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.bio-description {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.bio-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bio-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.bio-social-icon:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 1);
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bio-link-button {
    background: rgba(30, 41, 59, 0.9);
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-link-button:hover {
    background: rgba(30, 41, 59, 1);
    transform: translateY(-1px);
}

.bio-link-button i {
    font-size: 14px;
}

.bio-footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Custom scrollbar for bio preview */
.bio-preview-content::-webkit-scrollbar {
    width: 4px;
}

.bio-preview-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.bio-preview-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.bio-preview-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
