/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}



.text-glass-outline {
    display: inline-block;
    position: relative;
    padding: 2px 6px;
    line-height: 1.2;

    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);

    border-radius: 8px;
}


body:not(.dark-mode) .text-glass-outline {
    background: linear-gradient(
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.25)
    );

    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #111;
}



body.dark-mode .text-glass-outline {
    background: linear-gradient(
        rgba(20, 20, 20, 0.6),
        rgba(10, 10, 10, 0.35)
    );

    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}



body:not(.dark-mode) .text-glass-outline.email a {
    color: #111 !important;
}



body.dark-mode .text-glass-outline.email a {
    color: #fff !important;
}



.text-glass-outline:empty {
    display: none;
}


.container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 8%;
}


.link-btn.fat {
    border: 2.5px solid #666 !important;
    font-weight: 700 !important;
}









#previewNameWrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}



.verify-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    position: relative;
    top: -3px;
    transform-origin: center center;
    transform: scale(7); /* BIG, same position */
    opacity: 0;
}



.verify-badge.animate {
    animation: stampIn 1.15s cubic-bezier(.2,.9,.3,1.2) forwards;
    animation-delay: 0.1s;
}

@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(7);
    }

    40% {
        opacity: 1;
    }

    70% {
        transform: scale(0.92);
    }

    85% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}




.badge-rays {
    fill: #1DA1F2;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transition: fill 0.25s ease;
}

/* inner circle */
.badge-core {
    fill: #1DA1F2;
    transition: fill 0.25s ease;
}

/* white tick */
.badge-check {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
    display: inline-block;          /* make the container inline */
    text-align: center;
}

.badge-rays {
    animation: sunspin 60s linear infinite;
}

@keyframes sunspin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}





#heart-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    z-index: 10;
}
.container {
    position: relative;
    z-index: 20;
}






.description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 35px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.link-btn {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.link-btn:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.email {
    font-size: 0.9rem;
    color: #666;
}

.email a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease-in-out;
}

.email a:hover {
    color: #000;
}


#profileImage {
    width: 120px;
    height: 120px; /* adjust height as needed */
    border: 2px dotted #bbb;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background 0.3s;
}

#profileImage:hover {
    background-color: #f1f1f1;
    color: #333;
}


body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .name {
    color: #f5f5f5;
}

body.dark-mode .description {
    color: #b0b0b0;
}

body.dark-mode .link-btn {
    background-color: #1e1e1e;
    border: 1px solid #666;
    color: #f0f0f0;
}

body.dark-mode .link-btn:hover {
    background-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark-mode .email {
    color: #aaa;
}

body.dark-mode .email a {
    color: #bbb;
}

body.dark-mode .email a:hover {
    color: #fff;
}

body.dark-mode #profileImage {
    border: 2px solid #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}


#previewDescription {
    white-space: pre-line; /* renders \n as actual line breaks */
}



.audio-card {
    width: 90%;
    margin: 20px auto;
    padding: 15px;
    border-radius: 16px;
    background: #f4f4f4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
    animation: fadeIn 0.4s ease;
}

.audio-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: black;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-progress {
    flex-grow: 1;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.audio-progress-fill {
    height: 100%;
    background: black;
    width: 0%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Dark mode for audio card */
body.dark-mode .audio-card {
    background: #1e1e1e; /* darker card background */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* slightly stronger shadow */
}

body.dark-mode .audio-label {
    color: #ddd; /* lighter text for dark mode */
}

body.dark-mode .audio-play-btn {
    background: #333; /* dark button */
    color: #f0f0f0;   /* light text */
}

body.dark-mode .audio-progress {
    background: #333; /* darker progress bar background */
}

body.dark-mode .audio-progress-fill {
    background: #f0f0f0; /* light progress fill */
}



/* Responsive for small screens */
@media (max-width: 480px) {
    .name {
	font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .link-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .email {
        font-size: 0.85rem;
    }
}
