/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background: linear-gradient(180deg, #6b358a 0%, #481f61 45%, #2a0f3d 100%);
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px 40px;
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.avatar-container {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto 15px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.description {
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 15px;
    padding: 0 10px;
}

.description .best-slogan {
    display: block;
    margin-top: 5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.7rem;
    text-decoration: none;
}

.info-text {
    margin-bottom: 25px;
}

.slogan {
    font-size: 1.15rem;
    font-weight: 600;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tree-button {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.copyright-footer {
    margin-top: 40px;
    padding: 15px 10px 5px;
    text-align: center;
}

.copyright-footer p {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.copyright-footer p span {
    font-weight: 700;
    color: #ffffff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: #111827;
    width: 100%;
    max-width: 700px;
    max-height: 94vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    padding: 12px;
}

.close-btn {
    position: sticky;
    top: 0;
    float: left;
    background: #481f61;
    color: #ffffff;
    border: none;
    font-size: 1.8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
}

.images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    margin-top: 10px;
}

.img-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.menu-img-sharp {
    width: 100%;
    height: auto;
    display: block;
}

.single-image-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10005;
    overflow: hidden;
}

.single-image-view.active {
    display: block;
}

.view-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10010;
}

.view-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.view-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.exit-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 10000;
}

.exit-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
