:root {
    --primary-color: #d4af37;
    --accent-color: #3498db;
    --hover-bg: #333333;
    --text-dark: #eeeeee;
    --text-light: #bbbbbb;
    --bg-light: #121212;
    --card-bg: rgba(25, 25, 25, 0.95);
}

/* 1. BAKGRUNDEN - Nu med din justerade opacitet (0.10) */
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    margin: 0; 
    line-height: 1.6; 
    background-color: #121212;
    background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.10)), 
                      url('JVC_4vr-5456x.png');
    background-attachment: fixed; 
    background-position: center bottom; 
    background-repeat: no-repeat; 
    background-size: 800px auto; 
}

/* 2. HEADER & LOGO-ANIMATION */
.header { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('header_wood.jpg'); 
    background-size: cover;
    background-position: center;
    color: white; 
    padding: 30px 20px; 
    text-align: center; 
    border-bottom: 3px solid #2a1d15;
}

.main-logo { 
    max-width: 240px; 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.7)); 
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-logo:hover { 
    transform: scale(1.08); 
}

/* 3. CONTAINER */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 20px; 
    position: relative;
    z-index: 10;
}

/* 4. NAVIGERING - ALUMINIUM LOOK */
.navigation-section { margin-top: -20px; margin-bottom: 30px; text-align: center; }
.letter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.nav-btn { 
    padding: 10px 18px; 
    border: 1px solid #888; 
    background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 45%, #909090 50%, #b0b0b0 100%);
    color: #222; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.nav-btn:hover { 
    background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 45%, #b0b0b0 50%, #d0d0d0 100%);
    transform: translateY(-1px);
}

.nav-btn.active { 
    background: #3498db; 
    color: white; 
    border-color: #2980b9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 5. SÖKFÄLT - CENTRERAT */
.search-section { margin-bottom: 40px; display: flex; justify-content: center; width: 100%; }
#album-search { 
    width: 100%; max-width: 500px; padding: 15px 25px; 
    background: rgba(10, 10, 10, 0.85); color: var(--primary-color); 
    border: 2px solid #333; border-radius: 50px; outline: none;
    font-size: 1.1rem; text-align: center;
    transition: all 0.3s ease;
}
#album-search:focus { border-color: var(--primary-color); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }

/* 6. GRID & ALBUM ITEMS */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px; justify-items: center; }

.album-item { 
    background: var(--card-bg); padding: 10px; width: 130px; border-radius: 12px; 
    text-align: center; border: 1px solid #333; cursor: pointer;
    position: relative; z-index: 20; transition: 0.3s;
}

.album-item:hover { transform: translateY(-5px); border-color: var(--primary-color); }

/* 7. HOVER PREVIEW */
.hover-preview { 
    display: none; position: absolute; bottom: 110%; left: 50%; 
    transform: translateX(-50%); background: #1a1a1a; padding: 6px; 
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.8); 
    z-index: 9999; width: 180px; pointer-events: none; border: 1px solid var(--primary-color);
}
.hover-preview img { width: 100%; height: auto; border-radius: 4px; display: block; }
.album-item:hover .hover-preview { display: block !important; }

.album-item img { width: 100%; height: auto; border-radius: 8px; display: block; }
.album-item h3 { font-size: 0.85rem; color: var(--primary-color); margin: 8px 0 0 0; }

/* 8. POPUP & FOOTER */
.album-popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; justify-content: center; align-items: center; }
.album-popup.active { display: flex; }
.popup-content { background: #1a1a1a; color: white; padding: 30px; border-radius: 20px; max-width: 400px; width: 90%; text-align: center; border: 1px solid #333; position: relative; }
.close-button { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #666; cursor: pointer; border: none; background: none; }
.button-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn { padding: 12px; color: white; text-decoration: none; border-radius: 8px; font-weight: bold; text-align: center; }
.btn-discogs { background: #3498db; }
.btn-ebay { background: #e67e22; }
.btn-google { background: #27ae60; }
.footer { text-align: center; padding: 40px 20px; background: #0a0a0a; color: #ffffff; margin-top: 60px; border-top: 4px solid #2a1d15; }

@media (max-width: 768px) { .hover-preview { display: none !important; } }