/* Rustic Vintage Theme */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --color-wood: #2a1b12;
    --color-parchment: #f4e8d3;
    --color-parchment-dark: #e6d5b8;
    --color-text-dark: #332211;
    --color-text-light: #fefefe;
    --color-accent: #d35400;
    
    --font-handwriting: 'Dancing Script', cursive;
    --font-heading: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-parchment);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadePageIn 0.5s ease-in-out;
}
@keyframes fadePageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a { text-decoration: none; color: inherit; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Navigation */
nav {
    background: rgba(42, 27, 18, 0.8);
    color: var(--color-text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}
.nav-links a:hover { color: var(--color-accent); }

/* Hero Section */
.hero {
    position: relative;
    background-attachment: fixed;
    height: 100vh;
    background: url('../images/splash_page.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}
/* Removed hero::before overlay to show the new splash image clearly */
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-text-light);
    max-width: 600px;
}
.hero-logo {
    max-width: 400px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 30px;
}
.hero h2 {
    font-family: var(--font-handwriting);
    font-size: 3rem;
    color: #e6b87c;
    transform: rotate(-3deg);
}

/* Banner Section */
.banner {
    background: url('https://www.transparenttextures.com/patterns/aged-paper.png'), linear-gradient(to bottom, #f4e8d3, #ebd4ab);
    padding: 40px 0;
    border-top: 5px solid #8e5a33;
    border-bottom: 5px solid #8e5a33;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.banner .container {
    display: flex;
    align-items: center;
    gap: 30px;
}
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-wood);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.banner-text { flex: 1; }
.banner-text h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 5px;
}
.banner-text h3 span {
    font-family: var(--font-handwriting);
    color: var(--color-accent);
    font-size: 2.5rem;
}
.btn-rustic {
    display: inline-block;
    background: linear-gradient(to bottom, #e67e22, #d35400);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    border: 1px solid #a04000;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 0 #933900, 0 10px 15px rgba(0,0,0,0.4), inset 0 2px 2px rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
    cursor: pointer;
}
.btn-rustic:hover {
    background: linear-gradient(to bottom, #f08c35, #e67e22);
    box-shadow: 0 6px 0 #933900, 0 10px 20px rgba(0,0,0,0.5), 0 0 20px rgba(230,126,34,0.6), inset 0 2px 2px rgba(255,255,255,0.4);
    transform: translateY(-2px) scale(1.03);
}
.btn-rustic:active {
    top: 6px;
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 0 0 #933900, 0 5px 10px rgba(0,0,0,0.3);
    transform: translateY(0);
    box-shadow: 0 2px 0 #933900, 0 4px 5px rgba(0,0,0,0.4), inset 0 2px 5px rgba(0,0,0,0.3);
}
.btn-like {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 6px 15px;
    cursor: pointer;
    color: #d35400;
    font-size: 1rem;
    box-shadow: 0 4px 0 #ccc, 0 5px 10px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
    position: relative;
    top: 0;
    font-family: var(--font-sans);
}
.btn-like:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #ccc, 0 8px 15px rgba(0,0,0,0.2);
}
.btn-like:active {
    top: 4px;
    transform: translateY(0);
    box-shadow: 0 0 0 #ccc, 0 1px 2px rgba(0,0,0,0.1);
}

/* Book Section */
.book-section {
    background: var(--color-wood) url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    padding: 80px 0;
}
.book {
    display: flex;
    background: var(--color-parchment);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(150, 100, 50, 0.2);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}
.page {
    flex: 1;
    padding: 60px 50px;
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}
.page.left { border-right: 1px solid rgba(0,0,0,0.1); }
.page h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    margin-bottom: 30px;
    padding-bottom: 10px;
}
.page h3 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 15px; }
.page p {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #111;
}

/* Reviews Section */
.review-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.review-grid::-webkit-scrollbar { width: 8px; }
.review-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
.review-grid::-webkit-scrollbar-thumb { background: rgba(230, 184, 124, 0.5); border-radius: 4px; }
.review-grid::-webkit-scrollbar-thumb:hover { background: rgba(230, 184, 124, 0.8); }
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 184, 124, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--color-parchment);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(230, 184, 124, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(230, 184, 124, 0.4);
    border-color: rgba(230, 184, 124, 0.8);
}
.review-card:hover::before {
    opacity: 1;
}
.review-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}
.review-author {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: #e6b87c;
    position: relative;
    z-index: 1;
}
.stars {
    margin-top: 15px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fdf7e3 url('https://www.transparenttextures.com/patterns/aged-paper.png');
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid #c29b6f;
}
.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; cursor: pointer; color: #d35400;
    line-height: 1;
}
.modal-input {
    width: 100%; padding: 12px; margin-bottom: 20px;
    border: 1px solid #d2b48c; border-radius: 4px;
    background: rgba(255,255,255,0.5);
    font-family: var(--font-sans);
    font-size: 1rem; color: #332211;
}
.modal-input:focus { outline: none; border-color: #d35400; }

/* Filter Controls */
.song-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.filter-input {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    border: 2px solid #d2b48c;
    border-radius: 30px;
    background: #fdf7e3;
    color: #2a1b12;
    outline: none;
    transition: all 0.3s ease;
    min-width: 250px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.filter-input:focus {
    border-color: #d35400;
    box-shadow: 0 0 10px rgba(211, 84, 0, 0.2), inset 0 2px 5px rgba(0,0,0,0.05);
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(142, 90, 51, 0.2);
    border-top: 5px solid #d35400;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Animation */
.song-card-anim {
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.9);
}
@keyframes fadeInScale {
    to { opacity: 1; transform: scale(1); }
}

/* Animated Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    width: 25px;
    opacity: 0;
    transition: opacity 0.3s;
}
.equalizer.playing {
    opacity: 1;
}
.equalizer span {
    width: 4px;
    background: #d35400;
    border-radius: 2px;
    animation: eq-bounce 0.5s infinite alternate;
}
.equalizer span:nth-child(1) { height: 8px; animation-delay: 0.0s; }
.equalizer span:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.equalizer span:nth-child(4) { height: 6px; animation-delay: 0.1s; }

@keyframes eq-bounce {
    0% { height: 4px; }
    100% { height: 18px; }
}

/* Global Music Player */
.global-player {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #2a1b12;
    color: #fdf7e3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
    z-index: 2000;
    box-sizing: border-box;
    font-family: var(--font-sans);
}
.player-info {
    display: flex; align-items: center; gap: 15px; width: 25%;
}
.player-art {
    width: 60px; height: 60px;
    border-radius: 50%;
    background-color: #444;
    background-size: cover;
    background-position: center;
    border: 2px solid #d35400;
}
.player-art.spin {
    animation: spinArt 4s linear infinite;
}
@keyframes spinArt { 100% { transform: rotate(360deg); } }
.player-text h4 { margin: 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; color: #e6b87c; }
.player-text p { margin: 0; font-size: 0.8rem; color: #aaa; }

.player-controls-container {
    display: flex; flex-direction: column; align-items: center; width: 50%; gap: 5px;
}
.player-buttons { display: flex; align-items: center; gap: 20px; }
.ctrl-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.ctrl-btn:hover { color: #d35400; }
.play-btn { font-size: 2.2rem; color: #d35400; }
.play-btn:hover { color: #fff; }
.ctrl-btn.active { 
    color: #d35400; 
    filter: drop-shadow(0 0 5px #d35400);
    transform: scale(1.1);
}

.player-progress {
    display: flex; align-items: center; gap: 10px; width: 100%; max-width: 500px; font-size: 0.8rem;
}
.player-progress input[type="range"] {
    flex: 1; accent-color: #d35400; cursor: pointer;
}

.player-extras {
    display: flex; align-items: center; gap: 20px; justify-content: flex-end; width: 25%;
}
.queue-btn { font-size: 1rem; border: 1px solid #d35400; padding: 5px 15px; border-radius: 20px; }
.volume-container { display: flex; align-items: center; gap: 10px; }
.volume-container input[type="range"] { width: 80px; accent-color: #d35400; cursor: pointer;}

@media(max-width: 768px) {
    .player-info { width: auto; }
    .player-extras { display: none; }
    .player-controls-container { width: auto; flex: 1; margin: 0 10px; }
    .player-art { width: 45px; height: 45px; }
    .player-text h4 { max-width: 100px; font-size: 0.9rem; }
    .play-btn { font-size: 1.8rem; }
}

/* Footer & Social */
footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-parchment-dark);
    font-size: 0.95rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(42, 27, 18, 0.1);
    color: var(--color-wood);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

/* Scroll Fade Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@media(max-width: 768px) {
    .nav-links { gap: 15px; font-size: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero-logo { max-width: 85%; }
    .hero h2 { font-size: 2.2rem; }
    .banner .container { flex-direction: column; text-align: center; }
    .book { flex-direction: column; }
    .page { padding: 40px 25px; }
    .page.left { border-right: none; border-bottom: 2px dashed rgba(142, 90, 51, 0.3); }
    .page h2 { font-size: 2.8rem; }
    .btn-rustic { padding: 10px 20px; font-size: 1rem; }
}

