/* linkinbio.css - LinkInBio Style Theme */

html.theme-linkinbio {
    background-color: var(--primary-color);
}

html.theme-linkinbio body {
    min-height: 100vh;
    padding-bottom: 50px;
    box-shadow: none !important;
    padding-top: 0px;
}

.theme-linkinbio .profile-wrapper {
    /* Removed margin-top: 0 !important as requested */
}

.theme-linkinbio .profile-card {
    /* To ensure card is visibly distinct, contrast it against primary color */
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    max-width: 680px;
    margin: 0 auto 40px auto !important;
    border-radius: 24px;
    position: relative;
    padding-top: 275px; /* Push content down completely below the avatar, tighter gap */
}

/* Reduce spacing around the artist name and socials */
.theme-linkinbio .profile-info {
    margin-bottom: 0 !important; /* Tighter gap before socials */
}

.theme-linkinbio .artist-name {
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.theme-linkinbio .social-icons {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 25px !important;
}

/* Fix header positioning: Logo and share stay top */
.theme-linkinbio .page-header {
    z-index: 100;
    margin-bottom: 20px;
}

/* Force dark text on the white card, overriding global styles */
.theme-linkinbio .profile-card,
.theme-linkinbio .profile-info h1,
.theme-linkinbio .profile-info p {
    color: #333333 !important;
}

/* Theme forces circular avatar, hide rectangular background images */
.theme-linkinbio .profile-card.avatar-shape-circle .profile-header-image {
    display: none !important;
}

.theme-linkinbio .profile-card.avatar-shape-circle .profile-header-image-container {
    height: 0 !important;
    padding: 0 !important;
}

.theme-linkinbio .circle-avatar-overlay {
    background-color: #ffffff !important;
    top: 120px !important; /* Push the avatar down 120px from the top of the card */
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 1 !important;
    z-index: 10;
    /* Center it horizontally */
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Hide the slug, artist types, galleries, styles, and city explicitly for LinkInBio */
.theme-linkinbio .band-slug,
.theme-linkinbio .artist-type-badge,
.theme-linkinbio .profile-gallery-container,
.theme-linkinbio .gallery-carousel-container,
.theme-linkinbio .styles-wrapper,
.theme-linkinbio .city-wrapper {
    display: none !important;
}

.theme-linkinbio .circle-avatar-overlay picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Simple Link Styling */
.theme-linkinbio .simple-link-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* Ensure the shared btn styles play nicely with the flex layout */
.theme-linkinbio .simple-link-item[class*="btn-"] {
    padding: 8px 12px !important; /* Override specific global button paddings to fit the layout */
}

/* Ensure default styling explicitly uses primary color if no specific button style is set */
.theme-linkinbio .simple-link-item:not([class*="btn-"]) {
    background-color: var(--primary-color);
    color: var(--btn-text-color);
    border: none;
    border-radius: 12px; /* fallback radius */
}

/* Button Radius Overrides based on global classes injected into body */
.theme-linkinbio body.link-radius-recto .simple-link-item {
    border-radius: 4px !important;
}
.theme-linkinbio body.link-radius-recto .simple-link-item .simple-link-left {
    border-radius: 4px !important; /* Square thumbnails */
}

.theme-linkinbio body.link-radius-redondeado .simple-link-item {
    border-radius: 12px !important;
}
.theme-linkinbio body.link-radius-redondeado .simple-link-item .simple-link-left {
    border-radius: 8px !important; /* Squircle thumbnails */
}

.theme-linkinbio body.link-radius-capsula .simple-link-item {
    border-radius: 50px !important;
}
.theme-linkinbio body.link-radius-capsula .simple-link-item .simple-link-left {
    border-radius: 50% !important; /* Circular thumbnails */
}

/* Button Style Overrides based on global classes injected into body */
/* Estilo: Relleno (Filled) */
.theme-linkinbio body.link-style-relleno .simple-link-item {
    background-color: var(--primary-color) !important;
    color: var(--btn-text-color) !important;
    border: none !important;
    box-shadow: none !important;
}

.theme-linkinbio body.link-style-relleno .simple-link-item:hover,
.theme-linkinbio body.link-style-relleno .simple-link-item:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.theme-linkinbio body.link-style-relleno .simple-link-item:active {
    transform: scale(0.98);
    box-shadow: none !important;
}

/* Estilo: Borde (Outline) */
.theme-linkinbio body.link-style-borde .simple-link-item {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.theme-linkinbio body.link-style-borde .simple-link-item:hover,
.theme-linkinbio body.link-style-borde .simple-link-item:focus {
    transform: scale(1.02);
    background-color: rgba(0, 0, 0, 0.03) !important;
}
.theme-linkinbio body.link-style-borde .simple-link-item:active {
    transform: scale(0.98);
}

/* Estilo: Sombra (Shadow) */
.theme-linkinbio body.link-style-sombra .simple-link-item {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 4px 4px 0px var(--primary-color) !important;
    transform: translateY(-2px);
}

.theme-linkinbio body.link-style-sombra .simple-link-item:hover,
.theme-linkinbio body.link-style-sombra .simple-link-item:focus {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 6px 6px 0px var(--primary-color) !important;
}

.theme-linkinbio body.link-style-sombra .simple-link-item:active {
    box-shadow: 0px 0px 0px var(--primary-color) !important;
    transform: translateY(2px) scale(0.98);
}

/* Inherit text color correctly for transparent/border styles */
.theme-linkinbio .simple-link-item[class*="btn-outline-"],
.theme-linkinbio .simple-link-item[class*="btn-shadow-"] {
    color: var(--primary-color) !important;
}

.theme-linkinbio .simple-link-item[class*="btn-solid-"] {
    color: var(--btn-text-color) !important;
    background-color: var(--primary-color) !important;
}

/* Right button inherits text color for contrast */
.theme-linkinbio .simple-link-item[class*="btn-solid-"] .simple-link-right,
.theme-linkinbio .simple-link-item[class*="btn-outline-"] .simple-link-right,
.theme-linkinbio .simple-link-item[class*="btn-shadow-"] .simple-link-right {
    color: inherit;
}

.theme-linkinbio .simple-link-clickable {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    overflow: hidden; /* Prevent text from pushing the share button out */
}

.theme-linkinbio .simple-link-left {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent to look good on any primary color */
    color: inherit;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Ensure outline/shadow links have a darker background for the icon box */
.theme-linkinbio .simple-link-item[class*="btn-outline-"] .simple-link-left,
.theme-linkinbio .simple-link-item[class*="btn-shadow-"] .simple-link-left {
    background: rgba(0, 0, 0, 0.05);
}

.theme-linkinbio .simple-link-left picture,
.theme-linkinbio .simple-link-left img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.theme-linkinbio .simple-link-left i {
    font-size: 1.2rem;
}

.theme-linkinbio .simple-link-center {
    flex-grow: 1;
    text-align: center;
    padding-right: 15px; /* Balance the left icon */
}

.theme-linkinbio .simple-link-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-linkinbio .simple-link-right {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.theme-linkinbio .simple-link-right:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Ensure the white button on dark backgrounds gets a white hover instead */
.theme-linkinbio .simple-link-item[class*="btn-solid-"] .simple-link-right:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-linkinbio .simple-link-right i {
    font-size: 1.2rem;
}

/* CTA Button Styling overrides for LinkInBio */
.theme-linkinbio .cta-button {
    background-color: var(--primary-color) !important;
    color: var(--btn-text-color) !important;
    border: none !important;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Match the selected link-style to the CTA button too */
.theme-linkinbio body.link-style-borde .cta-button {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.theme-linkinbio body.link-style-sombra .cta-button {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 4px 4px 0px var(--primary-color) !important;
}

.theme-linkinbio .cta-button:hover,
.theme-linkinbio .cta-button:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.theme-linkinbio body.link-style-sombra .cta-button:hover,
.theme-linkinbio body.link-style-sombra .cta-button:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 6px 6px 0px var(--primary-color) !important;
}

.theme-linkinbio .cta-button:active {
    transform: scale(0.98);
}

.theme-linkinbio body.link-radius-recto .cta-button { border-radius: 4px !important; }
.theme-linkinbio body.link-radius-redondeado .cta-button { border-radius: 12px !important; }
.theme-linkinbio body.link-radius-capsula .cta-button { border-radius: 50px !important; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .theme-linkinbio .profile-card {
        padding-top: 160px !important; /* Further separate content from avatar */
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
        border-radius: 20px 20px 0 0;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    html.theme-linkinbio .profile-wrapper {
        background: transparent !important;
        box-shadow: none !important;
        margin-top: 0 !important;
    }

    .theme-linkinbio .circle-avatar-overlay {
        width: 120px !important;
        height: 120px !important;
        top: 60px !important; /* Move avatar further up to avoid overlapping with name */
    }

    .theme-linkinbio .profile-card.avatar-shape-circle .profile-wrapper {
        margin-top: 0 !important;
    }
}

/* --- Separators specific to linkinbio --- */
.theme-linkinbio .separator-solid {
    border-top: 2px solid #333333 !important;
    opacity: 0.4 !important;
}

.theme-linkinbio .separator-dashed {
    border-top: 2px dashed #333333 !important;
    opacity: 0.5 !important;
}
