/*ll.css*//
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    background-attachment: fixed; /* Fix background to the viewport */
    min-height: 100vh;
    /* Ensure full viewport usage */
    width: 100%;
    overflow-x: hidden;
}

/* Iframe-specific styling for phone preview integration */
body[data-iframe="true"], 
iframe body,
body.iframe-preview {
    /* REMOVED: Override background - let user's background color show through */
    /* background: white !important; */
    background-attachment: initial !important;
    
    /* Add border radius matching phone screen */
    border-radius: 26px !important;
    overflow: hidden !important;
    
    /* Ensure content fits within rounded corners */
    box-sizing: border-box !important;
    
    /* Add padding for content spacing within rounded container */
    padding: 16px 12px 20px !important;
    
    /* Ensure minimum height fills parent */
    min-height: 100% !important;
    height: 100% !important;
}

/* Global iframe detection - applies when body is inside ANY iframe */
@media all {
    /* Detect if we're in an iframe context */
    body:not([data-no-iframe]) {
        /* Check if we're being rendered in an iframe environment */
    }
}

/* Alternative approach using CSS to detect iframe rendering */
body {
    /* Check if current context suggests iframe rendering */
}

/* Responsive iframe border-radius for different phone frame sizes */
@media screen and (max-width: 320px) {
    /* Mobile small - match 22px radius */
    body[data-iframe="true"], 
    body.iframe-preview {
        border-radius: 22px !important;
        padding: 12px 10px 16px !important;
    }
}

@media screen and (min-width: 321px) and (max-width: 360px) {
    /* Mobile large - match 24px radius */  
    body[data-iframe="true"], 
    body.iframe-preview {
        border-radius: 24px !important;
        padding: 14px 12px 18px !important;
    }
}

@media screen and (min-width: 361px) {
    /* Desktop/default - match 26px radius */
    body[data-iframe="true"], 
    body.iframe-preview {
        border-radius: 26px !important;
        padding: 16px 12px 20px !important;
    }
}

/* When rendered in iPhone/mobile preview context, preserve user's background */
@media screen and (max-width: 400px) and (max-height: 800px) {
    body:not(.auth-page):not([data-no-iframe]) {
        /* REMOVED: Don't force white background - let user's background show */
        /* background: white !important; */
        background-attachment: initial !important;
        border-radius: inherit !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        min-height: 100% !important;
    }
}

/* Authentication page specific background - Patriotic freedom theme */
body.auth-page {
    background: linear-gradient(135deg, #1e40af 0%, #dc2626 25%, #ffffff 50%, #dc2626 75%, #1e40af 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#alertPlaceholder {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 9999;
}

/* Modern alert styling */
.auth-page .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    animation: slideInDown 0.3s ease-out;
}

.auth-page .alert-success {
    background: rgba(72, 187, 120, 0.9);
    color: white;
    border-left: 4px solid #38a169;
}

.auth-page .alert-danger {
    background: rgba(245, 101, 101, 0.9);
    color: white;
    border-left: 4px solid #e53e3e;
}

.auth-page .alert-warning {
    background: rgba(237, 137, 54, 0.9);
    color: white;
    border-left: 4px solid #dd6b20;
}

.auth-page .alert-info {
    background: rgba(66, 153, 225, 0.9);
    color: white;
    border-left: 4px solid #3182ce;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-page .btn-close {
    filter: brightness(0) invert(1);
}

/*this is for the loading screen*/
.loading{
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0.8;
    background: #8DA68B;
    background: url(../../images/preloader.gif) center no-repeat #fff;
}
/*end loading screen*/

.page-hero {
    background-color: #f8f9fa; /* Light gray background */
    padding: 100px 0; /* Adjust as needed */
    text-align: center;
}

.cta-button {
    margin-top: 20px;
}

.llfooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: black;
    /* Hide footer in iframe preview for full screen effect */
    z-index: 10;
}

/* Hide footer when viewed in iframe preview */
iframe .llfooter,
.iframe-view .llfooter {
    display: none !important;
}

#spacer{
    margin-bottom: 100px;
}

/*user name and user tagline background*/

.text-container {
    display: block; /* Temporarily switch to block to ensure they appear on a new line */
    width: fit-content; /* Fit the content width, but you'll need to center it manually */
    margin: 0 auto; /* Center the block elements */
    /*background-color: rgba(255, 255, 255, 0.5);*/ /* Semi-transparent white background */
    padding: 0px 20px; /* 0 padding top and bottom, 10px padding left and right */
    border-radius: 5px;
}

.link-container .btn {
    max-width: 90%;
    white-space: normal;
    word-wrap: break-word;
}


.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Adjust the size as needed */
    height: 45px; /* Adjust the size as needed */
    /*border: 1px solid black;*/ /* Adjust the thickness of the border as needed */
    border-radius: 10px; /* Adjust the rounding of the corners as needed */
    color: whitesmoke; /* Icon color */
    font-size: 24px; /* Adjust the icon size as needed */
    margin-bottom: 10px;
}

/* Social Media Icons */

.facebook-icon { background-color: #4267B2; }
.twitter-icon { background-color: #1DA1F2; }
.twitter-x-icon { background-color: #000000; }
.instagram-icon { background-color: #C13584; }
.linkedin-icon { background-color: #0A66C2; }
.youtube-icon { background-color: #FF0000; }
.pinterest-icon { background-color: #BD081C; }
.tiktok-icon { background-color: #000000; }
.github-icon { background-color: #211F1F; }
.stackoverflow-icon { background-color: #F48024; }
.medium-icon { background-color: #12100E; } 
.tumblr-icon { background-color: #35465C; }
.snapchat-icon { background-color: #FFFC00; }
.whatsapp-icon { background-color: #25D366; }
.discord-icon { background-color: #5865F2; }
.slack-icon { background-color: #4A154B; }
.reddit-icon { background-color: #FF4500; } 
.twitch-icon { background-color: #6441A5; }
.spotify-icon { background-color: #1DB954; } 
.telegram-icon { background-color: #0088CC; }
.email-icon { background-color: #000000; }
.phone-icon { background-color: #000; }
.sms-icon { background-color: #000; }

/* Privacy-First Platform Icons */
.signal-icon { background-color: #3A76F0; } /* Signal blue */
.session-icon { background-color: #00F782; } /* Session green */
.element-icon { background-color: #0DBD8B; } /* Element/Matrix green */
.mastodon-icon { background-color: #6364FF; } /* Mastodon purple */
.truthsocial-icon { background-color: #DC143C; } /* Truth Social red */
.rumble-icon { background-color: #85C742; } /* Rumble green */
.bitchute-icon { background-color: #2C2F70; } /* BitChute dark blue */
.gab-icon { background-color: #21CF7A; } /* Gab green */
.gettr-icon { background-color: #FC223B; } /* Gettr red */
.parler-icon { background-color: #892346; } /* Parler burgundy */
.mewe-icon { background-color: #007DA1; } /* MeWe blue */
.minds-icon { background-color: #FED12F; } /* Minds yellow */
.clouthub-icon { background-color: #1652F0; } /* CloutHub blue */
.lbry-icon { background-color: #155B4A; } /* LBRY/Odysee green */
.locals-icon { background-color: #FF6B35; } /* Locals orange */


/*for account create page*/
.brand_logo {
    height: 90px;
    width: 90px;
    margin-top: auto;
    position: relative;
    justify-content: center;
    /*border-radius: 50%;*/
    /*border: 2px solid white;*/
}

.user_card_create {
    margin-top: 80px;
    margin-bottom: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user_card_create:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Modern form styling */
.auth-page .form-control {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-page .form-control:focus {
    border-color: rgba(30, 64, 175, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.auth-page .btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.auth-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.6);
    background: linear-gradient(135deg, #1d4ed8 0%, #ef4444 100%);
}

.auth-page .btn-secondary {
    background: rgba(30, 64, 175, 0.9);
    border: 2px solid rgba(30, 64, 175, 1);
    color: white;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-page .btn-secondary:hover {
    background: rgba(30, 64, 175, 1);
    border-color: rgba(30, 64, 175, 1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.auth-page .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.auth-page .input-group-text {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 0 0 12px;
    backdrop-filter: blur(5px);
}

.auth-page .input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.user_card_create a {
    color: inherit; /* Hyperlinks will inherit the color from the parent element */
    text-decoration: none; /* Optional: Removes underline from links */
}

/*hide h1 header*/
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*END for account create page*/

/* Creator Tier Button Hover Effects */
.link-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(43, 108, 176, 0.6) !important;
}

/* Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Slide Effect */
.hover-slide {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hover-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.hover-slide:hover::before {
    left: 100%;
}

/*--------------------------------------------------------------
# Profile Image Centering - Critical Fix for Live Profile
--------------------------------------------------------------*/
/* Ensure profile image is perfectly centered in both live profile and preview */
.profile-img,
img.profile-img {
    display: block !important;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* Prevent any positioning issues */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    
    /* Force horizontal centering with text-align fallback */
    align-self: center !important;
}

/* Center the container holding the profile image */
.container .profile-img,
.text-center .profile-img {
    text-align: center !important;
}
