/*
Hi 🎐
If you're reading this, it means you opened the source code of my little project.
                            ╱|、
                          (˚ˎ 。7  
                           |、˜〵          
                          じしˍ,)ノ
						
This is a personal project that compiles my social media links so I no longer have to rely on third-party platforms. It also includes a fan-made Tamagotchi guide, written in Spanish and created with lots of love♡ (and I hope there will be many more in the future).

All the Tamagotchi resources were taken from Mr. Blinky's website, and for the main page I was partly inspired by Yokiie's website.

You are welcome to:
• learn from it
• take inspiration
• experiment with your own ideas

But if you reuse parts of it, please credit this website ⸜(｡˃ ᵕ ˂ )⸝♡

— Ema
emanon.vip
⠀⠀⠀⠀⠀⢀⣠⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢠⣿⡟⠉⠉⠉⠛⠻⢷⣶⣄⣀⣀⣠⣤⣤⣀⣀⣀⣀⡀⠀⠀⢀⣠⣤⣶⡿⠿⠿⢿⣦⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠈⠻⡛⠉⠏⢩⠃⡏⠋⢹⠛⠻⠿⣿⠿⠋⠁⠀⠀⠀⠀⠀⢿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⢠⡇⡆⠀⢸⢰⡄⢸⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠘⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⠀⠉⠀⠈⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⡿⠋⠀⠀⠀⠀⠀
⠘⠿⣷⣦⡄⠀⢀⣾⡿⠉⠈⠉⢻⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣶⣶⣶⣤⣀⠀⠀⠀⠀⣠⣴⣶⠀
⠀⠀⠀⠈⠁⠀⢸⣿⠀⠀⠀⠀⢠⣿⣿⣷⡄⠀⠀⠀⠀⠀⠀⢠⣾⡿⠁⠀⠀⠀⠘⣿⣿⣆⠀⢶⡿⠋⠁⠀⠀
⠿⠿⣷⣶⡄⠀⢸⣿⣷⣦⣴⣾⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⣿⣿⡄⠀⠀⢀⣠⣼⣿⣿⣿⠀⠀⠀⠀⢀⡀⠀
⠀⠀⠀⠀⠀⣀⠬⢿⣿⣿⣿⣿⣿⡿⢿⣿⣿⠂⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠘⠛⠛⠛⠛⠃
⠀⠀⠀⠀⠀⠓⠲⣾⣏⠛⢿⣿⣿⣷⣾⠟⠁⠀⠀⠀⠀⠀⠘⢿⣿⣿⣿⣧⣼⣿⣿⣟⠁⠓⣆⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⣶⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⣋⣩⣶⡿⠟⠉⠉⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣿⣿⠻⠻⢷⣦⣀⣤⣶⣶⣶⣶⣾⠿⠟⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⡇⠀⠀⢩⠟⠉⠁⢠⣾⡿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣤⣾⠿⠿⣷⣤⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/

:root {
    --clr-bg: #ffe4f2;
    --clr-primary: #ff6eb4;
    --clr-secondary: #00d2ff;
    --clr-accent: #ffb84d;
    --clr-text-main: #333333;
    --clr-text-muted: #666666;

    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(255, 110, 180, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ffe4f2 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(255, 110, 180, 0.5);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(0, 210, 255, 0.4);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(255, 184, 77, 0.4);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* ── Glass Utilities ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.2);
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text-main);
    outline: none;
    transition: var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(255, 110, 180, 0.2);
}

/* ── Header ── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--clr-primary), #ff3385);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(255, 110, 180, 0.1);
}

/* ── Controls ── */
.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.toggle-container,
.lang-toggle-container {
    display: flex;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.toggle-btn,
.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 26px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-btn.active,
.lang-btn.active {
    background: white;
    color: var(--clr-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ── Main Content ── */
.app-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 5%;
}

.filters-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

#group-select {
    min-width: 200px;
    cursor: pointer;
}

/* ── Grid layout ── */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* ── Character Card ── */
.character-card {
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 110, 180, 0.25);
    border-color: rgba(255, 255, 255, 1);
}

.char-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.character-card:hover .char-img-container img {
    transform: scale(1.1);
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1.1) translateY(0);
    }

    50% {
        transform: scale(1.1) translateY(-5px);
    }
}

.char-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 5px;
}

.char-group {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── Egg icons ── */
.egg-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.egg-icon--modal {
    width: 32px;
    height: 32px;
}

.modal-group-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-top: 6px;
}


/* ── Version Badge ── */
.version-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--clr-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge.party {
    background: var(--clr-secondary);
}

.version-badge.both {
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

/* ── Modal Overlay ── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 30px;
    padding: 40px;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: white;
    color: var(--clr-primary);
    transform: rotate(90deg);
}

/* ── Modal Body Design ── */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header .char-img-container {
    width: 150px;
    height: 150px;
    background: var(--clr-bg);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-primary);
}

.modal-header p {
    font-weight: 600;
    color: var(--clr-text-muted);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fav-section {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.fav-section h3 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-meals::before {
    content: "🍽️";
}

.icon-snacks::before {
    content: "🍦";
}

.icon-items::before {
    content: "🧸";
}

.icon-accessories::before {
    content: "🎀";
}

.fav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.fav-item:hover {
    transform: translateX(5px);
}

.fav-item-img {
    width: 40px;
    height: 40px;
    background: var(--clr-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fav-item-img img {
    max-width: 100%;
    max-height: 100%;
}

.fav-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Downloadable items ── */
.fav-item-link {
    color: var(--clr-primary) !important;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 2px solid transparent;
}

.fav-item-link:hover {
    border-color: var(--clr-primary);
    transform: translateX(4px);
    background: rgba(255, 110, 180, 0.08);
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .controls {
        justify-content: space-between;
    }

    .filters-section {
        flex-direction: column;
    }

    #group-select,
    .search-container input {
        width: 100%;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }
}

/* ── Footer ── */
.app-footer {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 22px;
}

.footer-center {
    opacity: 0.7;
    font-style: italic;
    letter-spacing: 0.3px;
}

.footer-right {
    display: flex;
    gap: 8px;
}

.no-link-style {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.no-link-style:hover {
    opacity: 0.7;
}

.separator {
    opacity: 0.5;
}

/* ── Fav Items ── */
.fav-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.fav-item-link {
    color: var(--clr-primary) !important;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 2px solid transparent;
}

.fav-item-link:hover {
    border-color: var(--clr-primary);
    transform: translateX(4px);
    background: rgba(255, 110, 180, 0.08);
}
