/* =================================================================== */
/* === FINAL MASTER STYLESHEET V9 FOR WALTERMIKE.COM === */
/* =================================================================== */

/* --- Variables and Basic Setup --- */
:root {
    --bg-color: #0b0f1a;
    --text-color: #f0f0f0;
    --purple-accent: #8a2be2;
    --dark-purple: #4b0082;
    --yellow-accent: #ffd700;
    --discord-blue: #7289da;
    --glow-color: #9370db;
    --header-height: 70px;
}

body {
    background-color: var(--bg-color);
    background-image: url('milky-way-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding-top: var(--header-height);
}

a { color: var(--purple-accent); text-decoration: none; }
h1 { font-family: 'Bangers', cursive; font-size: 4em; color: var(--purple-accent); text-shadow: 2px 2px 0 var(--dark-purple); text-align: center; }
h2 { color: var(--yellow-accent); font-size: 2em; text-align: center; margin-top: 2em; margin-bottom: 1em; }

/* --- Main Layout Structure (Used by all pages) --- */
.page-title { font-family: 'Dancing Script', cursive; font-weight: bold; }
.back-link { font-weight: bold; display: block; margin-bottom: 2em; font-size: 1.2em; width: 100%; text-align: left; }
.content-box { background-color: rgba(42, 42, 42, .7); padding: 25px; border-radius: 10px; margin: 2em auto; width: 100%; max-width: 800px; border: 2px solid var(--dark-purple); backdrop-filter: blur(5px); box-sizing: border-box; }
header { background-color: rgba(42, 42, 42, .7); padding: 15px 20px; display: flex; justify-content: flex-end; align-items: center; width: 100%; height: var(--header-height); box-sizing: border-box; position: fixed; top: 0; left: 0; z-index: 1000; border-bottom: 2px solid var(--purple-accent); backdrop-filter: blur(5px); }
.search-container input[type=text] { padding: 8px 12px; border: 1px solid var(--purple-accent); border-radius: 5px; background-color: #333; color: var(--text-color); font-size: 1em; margin-right: 10px; }
.search-container button { background-color: var(--purple-accent); color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-size: 1em; }
.search-container button:hover { background-color: var(--dark-purple); }
.container { display: flex; flex: 1; flex-direction: column; min-height: calc(100vh - var(--header-height)); }
.sidebar { width: 100%; background-color: rgba(34, 34, 34, .8); padding: 20px; display: flex; flex-direction: column; align-items: center; border-bottom: 2px solid var(--dark-purple); flex-shrink: 0; box-sizing: border-box; }
.content { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; }

/* --- Sidebar Content --- */
.sidebar h2 { font-size: 1.8em; margin-bottom: 20px; }
.sidebar .links-group { width: 100%; max-width: 220px; margin-bottom: 10px; }
.sidebar .links-group h3 { color: var(--purple-accent); font-size: 1.3em; text-align: left; cursor: pointer; position: relative; padding-bottom: 5px; border-bottom: 1px solid var(--dark-purple); }
.sidebar .links-group h3:hover { color: var(--yellow-accent); }
.sidebar .links-group h3::after { content: '▼'; position: absolute; right: 5px; }
.sidebar .links-group.active h3::after { content: '▲'; }
.sidebar .links-group-content { max-height: 0; overflow: hidden; transition: max-height .5s ease-out; }
.sidebar .links-group.active .links-group-content { max-height: 500px; }
.sidebar a { display: flex; align-items: center; justify-content: center; color: white; padding: 12px 15px; margin: 10px 0; border-radius: 8px; text-decoration: none; font-weight: bold; width: 100%; max-width: 220px; box-sizing: border-box; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 8px rgba(147,112,219,0.4); }
.sidebar .links-group-content a { background-color: rgba(94, 12, 147, .7); }
.sidebar a:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--glow-color); }
.sidebar .discord-button { background-color: var(--discord-blue); }
.sidebar .discord-button i { margin-right: 10px; }
.sidebar .tattoos-button, .sidebar .poetry-button { background-color: var(--purple-accent); }
.sidebar .videos-button { background-color: var(--yellow-accent); color: var(--bg-color); }
.sidebar .contact-button { background-color: #888; }

/* --- Homepage & Tattoos Page Hero Section --- */
.hero-header-section { display: flex; align-items: center; justify-content: center; width: 100%; flex-wrap: wrap; margin-bottom: 20px; }
.hero-header-section h1 { margin: 0 20px 0 0; }
.content-profile-picture { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--purple-accent); object-fit: cover; }
.main-content-image { max-width: 90%; width: 400px; height: auto; margin: 40px auto; border-radius: 10px; box-shadow: 0 0 25px var(--yellow-accent); }
.spotify-embed iframe { width: 100%; height: 352px; border: none; }

/* --- Tattoos Page --- */
/* --- Tattoos Page --- */
.tattoo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
}

/* This rule tells the images how to behave inside the grid */
.tattoo-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--dark-purple);
}

/* --- Video Player Page --- */
.player-layout { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; max-width: 1200px; margin: 2em auto; }
.video-wrapper { flex: 2; min-width: 320px; }
video { width: 100%; border-radius: 10px; background-color: #000; }
.playlist-wrapper { flex: 1; min-width: 300px; }
.playlist { max-height: 60vh; overflow-y: auto; text-align: left; padding: 10px; background-color: rgba(0,0,0,0.2); border-radius: 8px; }
.playlist a { font-family: sans-serif; color: var(--text-color); display: block; padding: 15px; border-bottom: 1px solid #4527a0; font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px #000; }
.playlist a:hover, .playlist a.active { background-color: #4527a0; border-radius: 8px; }

/* --- Poetry Page --- */
.poetry-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 20px; align-items: flex-start; }
.poem { background-color: rgba(42, 42, 42, 0.7); border: 2px solid var(--dark-purple); border-radius: 10px; padding: 25px; backdrop-filter: blur(5px); flex-basis: 400px; flex-grow: 1; max-width: 600px; overflow: hidden; }
.poem h2 { font-family: 'Dancing Script', cursive; font-size: 2.2em; text-align: left; margin: 0 0 15px; border-bottom: 1px solid var(--dark-purple); padding-bottom: 10px; cursor: pointer; position: relative; padding-right: 30px; }
.poem h2:hover { color: white; }
.poem h2::after { content: '+'; position: absolute; right: 5px; font-weight: bold; font-size: 1.5em; line-height: 0.8; transition: transform 0.3s ease; }
.poem.active h2::after { transform: rotate(45deg); }
.poem-body { max-height: 0; overflow: hidden; transition: max-height 0.7s ease-out; text-align: left; }
.poem.active .poem-body { max-height: 5000px; transition: max-height 1.2s ease-in; padding-top: 15px; }
.poem-body p { white-space: pre-wrap; font-family: 'Dancing Script', cursive; font-size: 1.5em; line-height: 1.8; margin: 0; }

/* --- Responsive Design --- */
@media (min-width: 851px) { /* DESKTOP */
    .container { flex-direction: row; }
    .sidebar { width: 280px; border-right: 2px solid var(--dark-purple); border-bottom: none; }
    .content { padding: 40px; }
    .player-layout { flex-direction: row; align-items: flex-start; }
    .tattoo-gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 850px) { /* TABLET AND PHONE */
    h1, .page-title { font-size: 2.5em; }
    .hero-header-section { flex-direction: column; }
    .hero-header-section h1 { margin: 0 0 20px; }
    .tattoo-gallery {grid-template-columns: 1fr;}
    .player-layout { flex-direction: column; align-items: center; padding: 0; }
    .video-wrapper { width: 100%; max-width: 560px; }
    .playlist-wrapper { width: 100%; max-width: 560px; margin-top: 20px; }
    .playlist { max-height: 40vh; }
}
