/* ==========================================================
   LINK BIO - PUBLIC THEME STYLESHEET
   Clean - Minimal - Premium Korean Aesthetic
   ========================================================== */

:root {
    --primary-color: #a81119;
    --bg-color: #faf9f6;
    --text-color: #18181b;
    --card-bg: #ffffff;
    --card-border: #e7e5e4;
    --btn-radius: 14px;
    --btn-spacing: 12px;
    --max-width: 440px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Be Vietnam Pro", Arial, sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.bio-public-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 48px;
}

.bio-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Area */
.bio-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio-avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 50%;
    padding: 3px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.bio-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.bio-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bio-description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #52525b;
    max-width: 340px;
    margin: 0 auto;
    word-break: break-word;
}

/* Elements List */
.bio-elements-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--btn-spacing);
}

/* Base Link Card Button */
.bio-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: var(--btn-radius);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bio-btn:hover {
    transform: translateY(-1.5px);
    border-color: #d4d4d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bio-btn:active {
    transform: scale(0.985);
}

/* Featured / Highlight Button (e.g. TikTok Shop Red) */
.bio-btn-featured {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(168, 17, 25, 0.25);
}

.bio-btn-featured:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(168, 17, 25, 0.32);
}

.bio-btn-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

.bio-btn-icon-left svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bio-btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.bio-btn-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.bio-btn-subtitle {
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 2px;
}

.bio-btn-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    opacity: 0.45;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bio-btn:hover .bio-btn-chevron {
    opacity: 0.85;
    transform: translateX(2px);
}

.bio-btn-featured .bio-btn-chevron {
    opacity: 0.9;
}

/* Section Heading / Group Title */
.bio-heading {
    text-align: center;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 14px 0 4px;
    letter-spacing: -0.01em;
}

/* Text Paragraph */
.bio-text-block {
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #52525b;
    padding: 4px 8px;
}

/* Image / Banner */
.bio-image-banner {
    width: 100%;
    border-radius: var(--btn-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bio-image-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Divider */
.bio-divider {
    width: 100%;
    height: 1px;
    background-color: var(--card-border);
    margin: 8px 0;
    opacity: 0.6;
}

/* Hotline Footer Element */
.bio-hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #3f3f46;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bio-hotline:hover {
    color: var(--primary-color);
}

.bio-hotline svg {
    width: 16px;
    height: 16px;
}

/* Footer Credits (Optional branding) */
.bio-footer {
    margin-top: 28px;
    font-size: 0.75rem;
    color: #a1a1aa;
    text-align: center;
}

.bio-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.bio-footer a:hover {
    text-decoration: underline;
}

/* Preview Bar (when viewed in draft mode) */
.preview-alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #18181b;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.preview-alert-bar a {
    color: #38bdf8;
    text-decoration: underline;
    margin-left: 8px;
}
