/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background-color: #0d0d0d;
    color: #d4c9b8;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Background elements - FIXED POSITIONING */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating leaves animation - FIXED */
.floating-leaves {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50,10 C60,5 75,15 80,30 C85,45 70,60 50,65 C30,60 15,45 20,30 C25,15 40,5 50,10 Z" fill="none" stroke="%232a4d3e" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 40px 40px;
    animation: float 120s infinite linear;
    top: 0;
    left: 0;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-100px, -100px) rotate(360deg);
    }
}

/* Constellation dots - FIXED */
.constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    animation: twinkle 4s infinite alternate;
}

.constellation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(66, 87, 104, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 30% 40%, rgba(66, 87, 104, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, rgba(66, 87, 104, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(66, 87, 104, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 90% 70%, rgba(66, 87, 104, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 20% 80%, rgba(66, 87, 104, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 40% 10%, rgba(66, 87, 104, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(66, 87, 104, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 15% 35%, rgba(66, 87, 104, 0.7) 2px, transparent 2px),
        radial-gradient(circle at 65% 15%, rgba(66, 87, 104, 0.7) 1px, transparent 1px);
    background-size: 300px 300px;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

/* Mouse trail effect - FIXED */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 104, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.3s;
    opacity: 0;
    box-shadow: 0 0 15px rgba(201, 168, 104, 0.4);
}

/* Trail particles */
.mouse-trail::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(42, 77, 62, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Main container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header styles */
.header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

.title {
    font-family: 'Special Elite', cursive;
    font-size: 4rem;
    color: #c9a868;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(201, 168, 104, 0.4);
    }
}

.title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a868, transparent);
}

.accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a4d3e, #c9a868, #2a4d3e, transparent);
    margin: 25px auto;
    width: 80%;
    animation: linePulse 4s infinite alternate;
}

@keyframes linePulse {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Content and cards */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background-color: rgba(18, 21, 26, 0.85);
    border-left: 3px solid #2a4d3e;
    border-right: 1px solid #1a1a1a;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 104, 0.1), transparent);
    transition: left 0.7s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(201, 168, 104, 0.15);
    border-left-color: #c9a868;
}

.card h2 {
    font-family: 'Special Elite', cursive;
    color: #c9a868;
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-bottom: 1px dashed #2a4d3e;
    padding-bottom: 8px;
    transition: color 0.3s;
}

.card:hover h2 {
    color: #e3d19e;
}

.card h2 i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.card:hover h2 i {
    transform: rotate(15deg);
}

.card p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Entries list */
.entries {
    list-style-type: none;
}

.entries li {
    margin-bottom: 18px;
    padding-left: 15px;
    border-left: 1px solid rgba(42, 77, 62, 0.5);
    position: relative;
    transition: all 0.3s;
}

.entries li:hover {
    border-left-color: #c9a868;
    padding-left: 20px;
}

.entries li::before {
    content: '✦';
    position: absolute;
    left: -10px;
    color: #2a4d3e;
    transition: color 0.3s, transform 0.3s;
}

.entries li:hover::before {
    color: #c9a868;
    transform: scale(1.3);
}

.entry-date {
    color: #8a9ba3;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    transition: color 0.3s;
}

.entries li:hover .entry-date {
    color: #c9a868;
}

/* Link buttons */
.links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.link-button {
    display: inline-block;
    padding: 12px 15px;
    background-color: rgba(42, 77, 62, 0.7);
    color: #d4c9b8;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 104, 0.3);
    transition: all 0.3s;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 104, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    background-color: rgba(66, 87, 104, 0.8);
    border-color: #c9a868;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(201, 168, 104, 0.2);
}

.link-button i {
    margin-right: 8px;
    transition: transform 0.3s;
}

.link-button:hover i {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 20px;
    color: #8a9ba3;
    font-size: 0.9rem;
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
    
    .mouse-trail {
        display: none;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #2a4d3e;
    border-radius: 5px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a868;
}

/* Fade in animation for page load */
.container {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Spotify Widget Styles */
.spotify-widget {
    max-width: 400px;
    margin: 20px auto;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(42, 77, 62, 0.5);
}

.widget-header h3 {
    color: #c9a868;
    font-family: 'Special Elite', cursive;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header h3 i {
    color: #1DB954; /* Spotify green */
}

.date-display {
    color: #8a9ba3;
    font-size: 0.9rem;
    font-style: italic;
}

.song-display {
    margin: 20px 0;
}

.song-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.album-cover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.placeholder-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a4d3e 0%, #425768 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a868;
    font-size: 2rem;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: none;
}

.song-details {
    flex: 1;
}

.song-title {
    color: #d4c9b8;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.song-artist {
    color: #c9a868;
    font-size: 1rem;
    margin: 0 0 3px 0;
}

.song-album {
    color: #8a9ba3;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.song-controls {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.control-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Crimson Text', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.play-btn {
    background-color: rgba(42, 77, 62, 0.7);
    color: #d4c9b8;
    font-size: 1.2rem;
    max-width: 60px;
}

.play-btn:hover:not(:disabled) {
    background-color: #3a6d5a;
}

.play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-btn.playing {
    background-color: #2a4d3e;
}

.spotify-btn {
    background-color: #1DB954;
    color: #0d0d0d;
    text-decoration: none;
    font-weight: 600;
}

.spotify-btn:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
}

.song-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(42, 77, 62, 0.5);
}

#song-notes {
    width: 100%;
    padding: 12px;
    background-color: rgba(13, 13, 13, 0.7);
    border: 1px solid #2a4d3e;
    color: #d4c9b8;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

#song-notes:focus {
    outline: none;
    border-color: #c9a868;
}

.notes-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-btn {
    padding: 8px 16px;
    background-color: rgba(42, 77, 62, 0.7);
    color: #d4c9b8;
    border: 1px solid rgba(201, 168, 104, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Special Elite', cursive;
}

.notes-btn:hover {
    background-color: #3a6d5a;
}

.notes-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.char-count {
    color: #8a9ba3;
    font-size: 0.9rem;
}

.song-manager {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px dashed rgba(42, 77, 62, 0.5);
}

.manager-btn {
    padding: 10px 15px;
    background-color: rgba(66, 87, 104, 0.7);
    color: #d4c9b8;
    border: 1px solid rgba(201, 168, 104, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Crimson Text', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.manager-btn:hover {
    background-color: rgba(86, 107, 124, 0.9);
    border-color: #c9a868;
}

.song-form {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(13, 13, 13, 0.5);
    border-radius: 6px;
    border-left: 3px solid #c9a868;
}

.song-form h4 {
    color: #c9a868;
    margin: 0 0 15px 0;
    font-family: 'Special Elite', cursive;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #d4c9b8;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: rgba(13, 13, 13, 0.7);
    border: 1px solid #2a4d3e;
    color: #d4c9b8;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
}

.form-group input:focus {
    outline: none;
    border-color: #c9a868;
}

.help-text {
    display: block;
    color: #8a9ba3;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Special Elite', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.save-song-btn {
    background-color: #2a4d3e;
    color: #d4c9b8;
}

.save-song-btn:hover {
    background-color: #3a6d5a;
}

.cancel-btn {
    background-color: rgba(115, 42, 42, 0.7);
    color: #d4c9b8;
}

.cancel-btn:hover {
    background-color: rgba(145, 52, 52, 0.8);
}

.widget-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(42, 77, 62, 0.5);
    text-align: center;
}

.widget-footer p {
    color: #8a9ba3;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .spotify-widget {
        max-width: 100%;
    }
    
    .song-info {
        flex-direction: column;
        text-align: center;
    }
    
    .song-controls {
        flex-direction: column;
    }
    
    .play-btn {
        max-width: none;
    }
    
    .song-manager {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* Palestine Banner */
.palestine-banner {
    position: relative;
    background: linear-gradient(90deg, 
        #000000 0%,
        #006400 25%,  /* Dark green */
        #000000 50%,
        #FFFFFF 75%,  /* White */
        #CE1126 100%  /* Red */
    );
    background-size: 400% 100%;
    animation: banner-gradient 15s ease infinite;
    color: #d4c9b8;
    padding: 12px 20px;
    text-align: center;
    font-family: 'Special Elite', cursive;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.banner-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f8f8f8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: title-pulse 3s ease-in-out infinite;
}

.banner-subtitle {
    font-size: 0.9rem;
    font-style: italic;
    color: #c9a868;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.banner-symbols {
    display: flex;
    gap: 15px;
    align-items: center;
}

.symbol {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: symbol-float 4s ease-in-out infinite;
    display: inline-block;
}

.symbol:nth-child(2) {
    animation-delay: 0.5s;
}

.symbol:nth-child(3) {
    animation-delay: 1s;
}

.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(201, 168, 104, 0.8),
        transparent
    );
    transform: translateX(-100%);
    animation: progress-scan 6s linear infinite;
}

/* Animations */
@keyframes banner-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes title-pulse {
    0%, 100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7),
                     0 0 5px rgba(201, 168, 104, 0.3);
    }
    50% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7),
                     0 0 10px rgba(201, 168, 104, 0.6),
                     0 0 20px rgba(42, 77, 62, 0.4);
    }
}

@keyframes symbol-float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes progress-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .palestine-banner {
        padding: 10px 15px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-text {
        align-items: center;
        text-align: center;
    }
    
    .banner-title {
        font-size: 1.1rem;
    }
    
    .banner-subtitle {
        font-size: 0.8rem;
    }
    
    .banner-symbols {
        gap: 10px;
    }
    
    .symbol {
        font-size: 1rem;
    }
}

/* Add this if you want an optional close button */
.banner-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #c9a868;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 3;
}

.banner-close:hover {
    opacity: 1;
}