@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background: url('imgs/background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* CENTRALIZAÇÃO */
.app-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* HEADER */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.header-section h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    color: #fff;
}

.current-year {
    color: #e7bbfd;
    font-weight: bold;
    font-size: 2rem;
}

/* WEEK GRID EM COLUNAS */
.week-section {
    width: 100%;
}

.week-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* WEEK CARD */
.week-card {
    position: relative;
    background-color: #e584f7;
    border: 2px solid #b063d5;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 170px;
    height: 400px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.week-card:nth-child(even) {
    background-color: #d1c4e9;
    border: 2px solid #9575cd;
}

.week-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* TEXTO */
.week-card textarea {
    width: 100%;
    height: 300%;
    flex: 1;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 5px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    font-style: normal;
    background-color: rgba(255,255,255,0.8);
    outline: none;
    color: #333;
}

/* ÍCONES FOFOS */
.card-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
    animation: pulse 1.5s infinite;
}

.card-decoration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    background-color: #dd37fa;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.clear-btn {
    background:#83548b;
}

/* TOAST */
.message-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #83548b;
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}

.message-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* CONFETES */
.confetti {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: confetti-fall 1s ease-out forwards;
}

.confetti.star {
    width: 8px;
    height: 8px;
    background-color: #fffacd;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

/* ELEMENTOS MÁGICOS */
.card-magic {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fffacd;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    animation: float 4s infinite ease-in-out;
}

.card-magic.star {
    width: 8px;
    height: 8px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.card-magic.mouse {
    background-color: #ffb6c1;
    border-radius: 50%;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
    25% { transform: translate(3px, -5px) rotate(20deg); opacity: 1; }
    50% { transform: translate(-2px, -10px) rotate(40deg); opacity: 0.9; }
    75% { transform: translate(2px, -5px) rotate(20deg); opacity: 1; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
}

/* FOOTER */
.footer-section {
    padding: 15px;
    text-align: center;
}

/* RESPONSIVO */
@media(max-width: 1000px) {
    .week-grid {
        flex-wrap: wrap;
    }

    .week-card {
        flex: 1 1 100px;
        margin-bottom: 15px;
    }
}
