/* --- ✧ AESTHETIC VARIABLES ✧ --- */
:root {
    --bg-pink: #ffd6e0;
    --soft-white: rgba(255, 255, 255, 0.85);
    --border-pink: #ffb6c1;
    --text-main: #6b4c5a; /* Soft brown/purple is easier on the eyes than black! */
    --text-highlight: #d1497b;
    --link-color: #ff8fab;
}

/* --- ✧ BACKGROUND & CURSOR ✧ --- */
body {
    /* Creates a cute gingham/picnic blanket pattern using pure CSS! */
    background-color: var(--bg-pink);
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,.4) 50%, transparent 50%),
        linear-gradient(rgba(255,255,255,.4) 50%, transparent 50%);
    background-size: 30px 30px;
    
    font-family: 'Verdana', sans-serif; /* Classic Y2K web font */
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    
    /* A cute pixel sparkle cursor! */
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0l2 9 9 2-9 2-2 9-2-9-9-2 9-2z' fill='%23ff8fab'/%3E%3C/svg%3E") 12 12, auto;
}

/* --- ✧ CUSTOM SCROLLBAR ✧ --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-pink); }
::-webkit-scrollbar-thumb { 
    background: var(--border-pink); 
    border-radius: 10px; 
    border: 3px solid var(--bg-pink);
}

/* --- ✧ MAIN SCRAPBOOK CONTAINER ✧ --- */
.diary-wrapper {
    background-color: var(--soft-white);
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(209, 73, 123, 0.2);
    border: 2px dashed var(--border-pink);
    padding: 30px;
    display: flex;
    gap: 30px;
    backdrop-filter: blur(5px); /* Gives it a modern soft-glass look */
}

/* --- ✧ LEFT SIDEBAR (Profile & Music) ✧ --- */
.sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.polaroid {
    background: white;
    padding: 10px 10px 25px 10px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    margin-bottom: 20px;
    text-align: center;
}

.profile-pic {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
}

.polaroid span {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: var(--text-highlight);
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* --- ✧ WORKING CUTE AUDIO PLAYER ✧ --- */
.mp3-player {
    background: white;
    border: 2px solid var(--border-pink);
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 182, 193, 0.3);
}

.mp3-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-highlight);
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--border-pink);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.blink-heart {
    color: #ff8fab;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.mp3-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-cute {
    background-color: var(--link-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.1s, background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-cute:hover {
    background-color: var(--text-highlight);
    transform: translateY(-2px);
}

.btn-cute:active {
    transform: translateY(1px);
}

/* --- ✧ RIGHT MAIN CONTENT ✧ --- */
.content {
    flex-grow: 1;
}

h1 {
    font-family: 'Comic Sans MS', 'Georgia', cursive;
    color: var(--text-highlight);
    font-size: 28px;
    margin-top: 0;
    border-bottom: 2px solid var(--bg-pink);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

h2 {
    font-family: 'Comic Sans MS', 'Georgia', cursive;
    color: var(--text-highlight);
    font-size: 18px;
    margin-top: 35px;
    margin-bottom: 5px;
    border-bottom: 2px dashed var(--bg-pink);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

p {
    line-height: 1.6;
    font-size: 13px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--text-highlight);
    border-bottom-style: solid;
}

/* Cute Custom Lists */
ul.cute-list {
    list-style: none;
    padding-left: 0;
}

ul.cute-list li {
    margin-bottom: 8px;
    font-size: 13px;
}

ul.cute-list li::before {
    content: "🎀 "; /* Uses an emoji as a bullet point! */
    margin-right: 5px;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-pink);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

/* =========================================================
   ✧ BOOKSHELF — grid of cute polaroid-style covers ✧
   ========================================================= */

.bookshelf-intro {
    font-size: 13px;
}

.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.book-card {
    background: white;
    padding: 8px 8px 12px;
    border-radius: 4px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.12);
    text-align: center;
    display: block;
    border-bottom: none; /* override the dashed underline from the global "a" style */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover,
.book-card:focus-visible {
    transform: translateY(-6px) rotate(0deg) scale(1.04);
    box-shadow: 4px 10px 18px rgba(209, 73, 123, 0.35);
    border-bottom: none;
}

.book-card:nth-child(odd) { transform: rotate(-2deg); }
.book-card:nth-child(even) { transform: rotate(2deg); }

.book-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
    background: var(--bg-pink);
}

.book-card-title {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 11px;
    color: var(--text-highlight);
    display: block;
    margin-top: 8px;
    line-height: 1.3;
}

.book-card-author {
    font-size: 10px;
    color: var(--text-main);
    opacity: 0.7;
    display: block;
}

.book-card-stars {
    font-size: 11px;
    color: var(--link-color);
    display: block;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* =========================================================
   ✧ REVIEW PAGE (resenas/*.html) ✧
   ========================================================= */

.review-wrapper {
    background-color: var(--soft-white);
    width: 100%;
    max-width: 620px;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(209, 73, 123, 0.2);
    border: 2px dashed var(--border-pink);
    padding: 30px;
    backdrop-filter: blur(5px);
}

.back-link {
    display: inline-block;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 12px;
    margin-bottom: 18px;
}

.review-header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 2px dashed var(--bg-pink);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.review-cover {
    width: 130px;
    flex-shrink: 0;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.12);
    transform: rotate(-2deg);
    background: white;
    padding: 8px 8px 16px;
    text-align: center;
}

.review-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid #eee;
    display: block;
}

.review-titles h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.review-author {
    font-style: italic;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
}

.review-meta b {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    font-weight: normal;
    margin-top: 2px;
}

.review-meta .label {
    color: var(--text-highlight);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.review-stars {
    color: var(--link-color);
    letter-spacing: 2px;
}

.review-body h2 {
    margin-top: 0;
    font-size: 15px;
}

/* --- ✧ RESPONSIVE (For Mobile Phones) ✧ --- */
@media (max-width: 600px) {
    .diary-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .sidebar {
        width: 100%;
    }
    .review-wrapper {
        padding: 20px;
    }
}
