/**
 * ITU MY ID - Profile Themes & Button Styles
 * https://itu.my.id
 */

/* ==========================================
   Public Bio Page Base Layout
   ========================================== */
.bio-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 48px 16px 32px;
    transition: background 0.3s ease, color 0.3s ease;
}

.bio-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.bio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.bio-avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 3px solid rgba(255,255,255,0.85);
}

.bio-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 3px solid rgba(255,255,255,0.85);
}

.bio-name {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.bio-slug {
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 12px;
}

.bio-description {
    font-size: 0.96rem;
    line-height: 1.5;
    max-width: 460px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

/* Social Icons Row */
.bio-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.bio-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bio-social-icon:hover {
    transform: translateY(-3px) scale(1.08);
}

/* Links List */
.bio-links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.bio-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
}

.bio-link-card:hover {
    transform: translateY(-3px) scale(1.015);
}

.bio-link-icon {
    font-size: 1.25rem;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-link-title {
    flex: 1;
    padding: 0 12px;
    word-break: break-word;
}

.bio-link-arrow {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Footer Badge */
.bio-footer {
    margin-top: 48px;
    text-align: center;
}

.bio-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bio-brand-badge:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Top Action Buttons (Share / QR) */
.bio-top-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.bio-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.bio-action-btn:hover {
    transform: scale(1.1);
}

/* ==========================================
   BUTTON STYLES VARIATIONS
   ========================================== */
.btn-style-rounded .bio-link-card {
    border-radius: 14px;
}

.btn-style-pill .bio-link-card {
    border-radius: 9999px;
    padding: 16px 28px;
}

.btn-style-square .bio-link-card {
    border-radius: 0px;
}

.btn-style-outline .bio-link-card {
    border-radius: 14px;
    background: transparent !important;
    border: 2px solid currentColor !important;
}

/* ==========================================
   THEMES DEFINITIONS
   ========================================== */

/* 1. Theme: Dark Obsidian */
.theme-dark-obsidian {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
}
.theme-dark-obsidian .bio-link-card {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.theme-dark-obsidian .bio-link-card:hover {
    background: #334155;
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}
.theme-dark-obsidian .bio-social-icon,
.theme-dark-obsidian .bio-action-btn {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
}
.theme-dark-obsidian .bio-brand-badge {
    background: rgba(30, 41, 59, 0.8);
    color: #f8fafc;
    border: 1px solid #334155;
}

/* 2. Theme: Sunset Vibrant */
.theme-sunset-gradient {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    color: #ffffff;
}
.theme-sunset-gradient .bio-link-card {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.theme-sunset-gradient .bio-link-card:hover {
    background: #ffffff;
    color: #dd2476;
    border-color: #ffffff;
}
.theme-sunset-gradient .bio-social-icon,
.theme-sunset-gradient .bio-action-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.theme-sunset-gradient .bio-brand-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 3. Theme: Cyber Neon */
.theme-neon-cyber {
    background: #090d16;
    color: #00ffcc;
}
.theme-neon-cyber .bio-name {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}
.theme-neon-cyber .bio-slug,
.theme-neon-cyber .bio-description {
    color: #94a3b8;
}
.theme-neon-cyber .bio-link-card {
    background: #111827;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
}
.theme-neon-cyber .bio-link-card:hover {
    background: #00ffcc;
    color: #090d16;
    box-shadow: 0 0 24px rgba(0, 255, 204, 0.6);
}
.theme-neon-cyber .bio-social-icon,
.theme-neon-cyber .bio-action-btn {
    background: #111827;
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.4);
}
.theme-neon-cyber .bio-brand-badge {
    background: #111827;
    color: #00ffcc;
    border: 1px solid #00ffcc;
}

/* 4. Theme: Frosted Glass (Glassmorphism) */
.theme-glassmorphism {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}
.theme-glassmorphism .bio-link-card {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}
.theme-glassmorphism .bio-link-card:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}
.theme-glassmorphism .bio-social-icon,
.theme-glassmorphism .bio-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.theme-glassmorphism .bio-brand-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 5. Theme: Deep Emerald */
.theme-emerald-nature {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ecfdf5;
}
.theme-emerald-nature .bio-link-card {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-emerald-nature .bio-link-card:hover {
    background: #ffffff;
    color: #064e3b;
}
.theme-emerald-nature .bio-social-icon,
.theme-emerald-nature .bio-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-emerald-nature .bio-brand-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ecfdf5;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 6. Theme: Royal Purple */
.theme-royal-violet {
    background: linear-gradient(135deg, #3b0764 0%, #6b21a8 100%);
    color: #faf5ff;
}
.theme-royal-violet .bio-link-card {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-royal-violet .bio-link-card:hover {
    background: #ffffff;
    color: #6b21a8;
}
.theme-royal-violet .bio-social-icon,
.theme-royal-violet .bio-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-royal-violet .bio-brand-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 7. Theme: Clean Minimalist */
.theme-minimal-light {
    background: #f8fafc;
    color: #0f172a;
}
.theme-minimal-light .bio-link-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.theme-minimal-light .bio-link-card:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.theme-minimal-light .bio-social-icon,
.theme-minimal-light .bio-action-btn {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
.theme-minimal-light .bio-brand-badge {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

/* 8. Theme: Pastel Sweet */
.theme-pastel-dream {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #1e293b;
}
.theme-pastel-dream .bio-link-card {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.theme-pastel-dream .bio-link-card:hover {
    background: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.theme-pastel-dream .bio-social-icon,
.theme-pastel-dream .bio-action-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.95);
}
.theme-pastel-dream .bio-brand-badge {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.95);
}

/* Modal Overlay & Centering for Bio Pages */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-dialog {
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 24px !important;
    max-width: 440px !important;
    width: 100% !important;
    padding: 32px 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    margin: auto !important;
    text-align: center !important;
    position: relative !important;
    box-sizing: border-box !important;
}
