/* --- Basic Setup --- */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
    /* Soft, airy off-white */
    color: #212529;
    /* Dark grey for text */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to the top */
    min-height: 100vh;
    padding: 40px 20px;
    /* More padding at the top */
    box-sizing: border-box;
}

/* --- Main Container --- */
.container {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* --- Profile Section --- */
.profile-header-standard {
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile scaling to preserve 2:1 aspect ratio WYSIWYG */
@media (max-width: 480px) {
    .profile-header-standard {
        padding: 1rem 0.5rem;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
        border: 3px solid #fff;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin: 0.25rem 0;
    }

    .bio {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .actions-container {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .social-icons {
        gap: 1rem;
    }
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.bio {
    font-size: 1.1rem;
    font-weight: 400;
    color: #495057;
    /* Slightly lighter text for the bio */
    margin-bottom: 0.5rem;
}

.champion-badge {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
    /* Adjusted space */
}

.champion-badge .fa-trophy {
    color: #f0c000;
    /* Gold color for trophies */
}

/* --- Social Icons Section --- */
.social-icons {
    display: flex;
    /* justify-content: center; */
    gap: 1.75rem;
    /* Space between icons */
    /* margin-bottom: 2.5rem; */
    /* Space before main links */
}

.actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.social-icons a {
    color: #6C757D;
    /* A neutral, medium grey with better contrast */
    text-decoration: none;
    font-size: 1.75rem;
    /* Make icons larger */
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #212529;
    /* Darken on hover */
    transform: translateY(-2px);
    /* Slightly lift on hover */
}

.modal-body p {
    color: #212529;
}


.qr-code-btn {
    background: none;
    border: none;
    color: #b1b6b9;
    /* Using a slightly darker gray for better contrast on light backgrounds */
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.qr-code-btn:hover {
    color: #8a8a8a;
    transform: translateY(-2px);
}

.btn-copy-inline {
    border: none;
    background-color: #f8f9fa;
    cursor: pointer;
    float: right;
}

/* --- Theme Overrides for Dark Backgrounds --- */
/* This ensures the social & QR code buttons are visible on dark themes */
.background-style-default .social-icons a,
.background-style-default .qr-code-btn,
.background-style-black .social-icons a,
.background-style-black .qr-code-btn,
.background-style-red .social-icons a,
.background-style-red .qr-code-btn,
.background-style-blue .social-icons a,
.background-style-blue .qr-code-btn,
.background-style-green .social-icons a,
.background-style-green .qr-code-btn,
.background-style-orange .social-icons a,
.background-style-orange .qr-code-btn {
    color: rgba(255, 255, 255, 0.75);
    /* A light, translucent white for good contrast */
}

.background-style-default .social-icons a:hover,
.background-style-default .qr-code-btn:hover,
.background-style-black .social-icons a:hover,
.background-style-black .qr-code-btn:hover,
.background-style-red .social-icons a:hover,
.background-style-red .qr-code-btn:hover,
.background-style-blue .social-icons a:hover,
.background-style-blue .qr-code-btn:hover,
.background-style-green .social-icons a:hover,
.background-style-green .qr-code-btn:hover,
.background-style-orange .social-icons a:hover,
.background-style-orange .qr-code-btn:hover {
    color: #FFFFFF;
    /* Full white on hover */
}

/* --- QR Code Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s ease-in-out;
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.modal-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #adb5bd;
    padding: 0;
    line-height: 1;
}

.close-modal-btn:hover {
    color: #212529;
}

.modal-body .qr-code-image {
    width: 100%;
    max-width: 256px;
    height: auto;
    border-radius: 8px;
    margin: 1rem auto;
    border: 1px solid #e9ecef;
}

.modal-body .qr-url-display {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
    color: #495057;
    word-break: break-all;
}

.modal-footer {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-download {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #0b5ed7;
}

.btn-download i {
    margin-right: 0.5rem;
}

.btn-copy i {
    margin-right: 0.5rem;
}


/* --- Links Section --- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Space between buttons */
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* Space between icon and text */

    background-color: #FFFFFF;
    color: #212529;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;

    padding: 1rem;
    border-radius: 12px;
    /* Squircle shape */
    border: 1px solid #dee2e6;
    /* Subtle border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-button:hover {
    transform: translateY(-3px);
    /* Lifts the button up */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Stronger shadow on hover */
}

.link-button:active {
    transform: translateY(-1px);
    /* Click feedback */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.link-button i {
    font-size: 1.2rem;
    width: 20px;
    /* Ensures icons are aligned */
}

.section-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0px;
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Link Info Icon Styles & Wrapper */
.link-wrapper {
    display: block;
    width: 100%;
    position: relative;
}

.link-button {
    position: relative;
    padding-right: 3rem;
    padding-left: 3rem;
    /* Symmetric padding for visual centering */
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.link-info-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b1b6b9;
    font-size: 1rem;
    transition: color 0.2s, background-color 0.2s;
    z-index: 10;
    cursor: pointer;
}

.link-info-btn i {
    display: block;
}

.link-info-btn:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.05);
}