:root {
    --bg-pink: #FF1E8F;
    --card-white: #FFFFFF;
    --card-back: #F8F9FA;
    --text-blue: #2563EB; 
    --text-purple: #7C3AED; 
    --icon-pink: #FF1E8F;
    --spotify-green: #1DB954;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-pink);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.app-container {
    max-width: 950px;
    width: 100%;
}

/* =======================================
   1. BLOCO SUPERIOR (Logo + 2 Apps)
   ======================================= */
.bento-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 25px;
    margin-bottom: 25px;
}

.logo-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo-card img {
    width: 85%;
    height: auto;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.logo-card:hover img { transform: scale(1.03); }


/* =======================================
   2. BLOCO DO MEIO (Top 10 Chart)
   ======================================= */
.top10-app {
    background-color: var(--card-white);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin-bottom: 25px;
}

.top10-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px dashed #EEE;
    padding-bottom: 20px;
}

.top10-header h2 { font-size: 2rem; font-weight: 900; color: var(--text-blue); }
.top10-header .fire-icon { font-size: 2.5rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }

.top10-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 20px;
}

.track-item {
    display: flex;
    align-items: center;
    background-color: #F8F9FA;
    padding: 12px;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-item:hover { transform: translateX(5px); background-color: #F1F3F5; }
.track-rank { font-size: 1.6rem; font-weight: 900; color: var(--text-purple); width: 40px; text-align: center; }
.track-cover { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; margin: 0 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.track-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.track-title { font-size: 1.05rem; font-weight: 900; color: #222; margin-bottom: 2px; }
.track-artist { font-size: 0.85rem; font-weight: 700; color: #777; }

.spotify-btn {
    background-color: var(--spotify-green);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.3);
    transition: background 0.2s ease;
}
.spotify-btn:hover { background-color: #1ed760; }

/* =======================================
   3. BLOCO INFERIOR (3 Apps)
   ======================================= */
.bento-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 25px;
}


/* =======================================
   CARTÕES GIRATÓRIOS (FLIP CARDS)
   ======================================= */
.flip-card { background-color: transparent; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
.flip-card-front { background-color: var(--card-white); }
.flip-card-back { background-color: var(--card-back); transform: rotateY(180deg); padding: 25px; }

.plus-icon { position: absolute; top: 20px; right: 20px; background-color: var(--icon-pink); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; }
.flip-card-front h2 { font-size: 1.6rem; font-weight: 900; margin-top: 15px; line-height: 1.2; }
.text-blue { color: var(--text-blue); }
.text-purple { color: var(--text-purple); }
.card-icon { font-size: 4.5rem; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.15)); }

.flip-card-back h3 { color: var(--text-purple); font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.flip-card-back p { font-size: 0.95rem; color: #333; font-weight: 700; }
audio { width: 100%; height: 40px; margin-top: 15px; border-radius: 20px; }
.flip-back-hint { position: absolute; bottom: 15px; font-size: 0.8rem; color: #888; font-weight: 700; }


/* =======================================
   RESPONSIVIDADE (CELULARES E TABLETS)
   ======================================= */
@media (max-width: 900px) {
    .top10-list { grid-template-columns: 1fr; row-gap: 15px; }
}

@media (max-width: 850px) {
    .bento-top, .bento-bottom {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .logo-card { grid-column: span 2; grid-row: span 2; }
    .bento-bottom { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .bento-top, .bento-bottom { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 15px; }
    .logo-card { grid-column: span 1; grid-row: span 1; padding: 50px 20px; }
    .flip-card { height: 220px; }
    .top10-app { padding: 25px 15px; }
    .track-cover { width: 50px; height: 50px; }
    .track-rank { width: 30px; font-size: 1.3rem; }
    .spotify-btn span { display: none; }
    .spotify-btn { padding: 8px 12px; }
}