@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
:root{--bg:#0f1113;--card:#141619;--muted:#9aa0a6;--accent:#1db954;--text:#e6eef3}
*{box-sizing:border-box}body{margin:0;font-family:'Ubuntu',system-ui,Arial;background:var(--bg);color:var(--text)}
.container{max-width:1100px;margin:0 auto;padding:20px}.header{padding:12px 0;position:sticky;top:0;background:rgba(255,255,255,0.02)}
.logo img{height:44px}
.main-nav a{color:var(--muted);margin-right:12px;text-decoration:none;padding:6px 8px;border-radius:8px}
.main-nav a:hover{color:var(--text);background:rgba(255,255,255,0.02)}
.card{background:var(--card);border: 1px solid rgba(255,255,255,0.05); border-radius:12px;padding:18px;box-shadow:0 6px 18px rgba(0,0,0,0.45)}
.track{display:flex;gap:12px;padding:12px;background:rgba(255,255,255,0.02);border-radius:8px;margin-bottom:12px}
.track .icon img{width:56px;height:56px}
.btn{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--text);background:transparent;border:1px solid rgba(255,255,255,0.04)}
.btn.primary{background:var(--accent);color:#021}
.track-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.track-meta{color:var(--muted);font-size:13px;margin-top:6px;display:flex;gap:12px}
.audio-wave{height:48px;margin-top:8px;background:rgba(0,0,0,0.06);border-radius:6px;padding:6px}
@media (max-width:720px){.track{flex-direction:column}}


/* Sidebar card tweaks */
aside .card { margin-bottom: 12px; padding: 14px; }
aside .card h4 { margin: 0 0 8px 0; font-size: 15px; color: #e6eef3; }
.small { font-size: 12px; color: #9aa0a6; }
.muted { color: #9aa0a6 !important; }

/* Track layout */
.track { border: 1px solid rgba(255,255,255,0.05);display:flex; gap:12px; padding:12px; background:rgba(255,255,255,0.02); border-radius:8px; margin-bottom:12px; align-items:flex-start; }
.track-left { flex: 0 0 64px; }
.track-body { flex: 1 1 auto; }
.track-link { text-decoration:none; color:inherit; display:block; }
.track-title a { color: #ffffff; text-decoration:none; }
.track-title a:hover { text-decoration:underline; }

/* waveform + overlay */
.audio-wave { height:48px; margin-top:8px; position:relative; overflow:hidden; border-radius:6px; }
.audio-wave canvas { display:block; width:100%; height:48px; }
.wave-overlay { position:absolute; left:0; top:0; pointer-events:none; }

/* small audio control */
.mini-audio { width:100%; max-width:420px; }

/* ===== Mobile optimization (add at end of styles.css) ===== */

/* Overall adjustments for small screens */
@media (max-width: 900px) {
  .container { padding: 12px; }
  .header .container { padding: 8px 12px; }
  .main-nav { display: none; } /* hide full nav, use hamburger */
  .topbar-spacer { height: 64px; } /* more compact */
}

/* Mobile layout: stack main + sidebar */
@media (max-width: 720px) {
  main.container { display:block; padding:12px; }
  main.container > section, main.container > aside { width:100%; }
  /* make cards full width */
  .card, .track { width:100% !important; box-shadow: none; padding:12px; }

  /* Track layout: vertical */
  .track { flex-direction: column; gap:10px; align-items: stretch; }
  .track-left { flex: 0 0 auto; display:flex; justify-content:center; }
  .track-left .icon img { width:48px; height:48px; }
  .track-body { width:100%; }

  /* Larger tappable titles and actions */
  .track-title { font-size: 16px; line-height:1.2; }
  .track-meta { font-size:13px; display:flex; flex-wrap:wrap; gap:8px; }
  .actions .btn { padding:10px 14px; font-size:14px; }

  /* expand audio & waveform */
  .mini-audio { width:100%; max-width:100%; }
  .audio-wave { height:56px; margin-top:10px; }

  /* Sidebar becomes inline block below content */
  aside { margin-top:14px; }
  aside .card { padding:12px; }

  /* Make pagination wrap nicely */
  .btn { margin-bottom:8px; display:inline-block; }

  /* Make search input full width */
  form.search input { width:140px; }
}

/* Very small screens - extra spacing */
@media (max-width: 420px) {
  .track-title { font-size:15px; }
  .audio-wave { height:48px; }
  .main-nav a { padding:6px; font-size:14px; }
  .right-group .btn { padding:8px 10px; font-size:13px; }
}

/* Hamburger menu: show/hide nav for mobile */
.header .hamburger { display:inline-flex; }
.header .main-nav.mobile-open { display:flex; flex-direction:column; gap:6px; position:fixed; top:56px; right:12px; background:rgba(15,15,15,0.98); padding:12px; border-radius:8px; z-index:9999; box-shadow:0 8px 30px rgba(0,0,0,0.6); }
.header .main-nav.mobile-open a { color:var(--text); padding:8px; }

/* Make buttons larger & easier to tap everywhere */
.btn { padding:10px 12px; border-radius:10px; }
.btn.small { padding:8px 10px; font-size:14px; }

/* Improve waveform on small widths */
.audio-wave canvas { width:100% !important; height:48px !important; }

/* Improve readability for meta items */
.track-meta .meta-item { display:inline-block; padding:4px 6px; background:rgba(255,255,255,0.02); border-radius:6px; }

/* SIDEBAR MODERN LOOK */
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.side-item:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.side-icon img {
  width: 32px;
  height: 32px;
  opacity: .90;
}

.side-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.side-meta {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px;
}

/* ======================
   FOOTER STYLING
====================== */

.footer {
  background: rgba(255,255,255,0.03);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0.85;
}

.footer a {
  color: var(--text);
  margin-left: 15px;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer a:hover {
  color: #4ade80; /* lijepa zelena */
  text-shadow: 0 0 6px rgba(74,222,128,0.6);
}

/* ======================
   LINK STYLING
====================== */

 a {
  color: var(--text);
  margin-left: 15px;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #4ade80; /* lijepa zelena */
  text-shadow: 0 0 6px rgba(74,222,128,0.6);
}

/* Mobile footer */
@media (max-width: 680px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-right a {
    margin: 0 6px;
  }
}



/* Modern Dark Search Bar */
.search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;

    /* Dark theme */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e6eef6;

    /* Smooth animation */
    transition: 0.2s ease-in-out;
    backdrop-filter: blur(6px);
}

.search input::placeholder {
    color: rgba(230, 238, 246, 0.55);
}

.search input:focus {
    outline: none;
    border-color: #6ee7b7;
    background: rgba(255, 255, 255, 0.12);
}

/* Force same style as kontakt.php */
header .search input,
.topbar .search input,
.search input[type="text"],
.search input[type="search"] {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    color: inherit !important;
    padding: 10px !important;
    border-radius: 8px !important;
    outline: none !important;

    transition: 0.2s ease-out;
}

/* Placeholder isto kao u kontakt.php */
header .search input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

/* Fokus efekat — suptilan neon kao u inputima */
header .search input:focus {
    border-color: rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* ===== Forced dark, rounded search box (put at the END of assets/styles.css) ===== */

/* Target exactly the header search input we inserted */
body.theme-dark header .ym-search input#topSearch,
header .ym-search input#topSearch,
.ym-topbar header .ym-search input#topSearch {
    /* Appearance */
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    color: inherit !important;
    padding: 10px 44px 10px 12px !important; /* leave space for icon on the right */
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* smooth */
    transition: border-color .15s ease, background .15s ease !important;
    backdrop-filter: none !important;
}

/* placeholder color */
body.theme-dark header .ym-search input#topSearch::placeholder {
    color: rgba(230,238,246,0.35) !important;
}

/* focus state */
body.theme-dark header .ym-search input#topSearch:focus {
    border-color: rgba(110,231,183,0.95) !important; /* #6ee7b7 */
    background: rgba(255,255,255,0.02) !important;
}

/* remove default inner clear/search icons on WebKit */
body.theme-dark header .ym-search input#topSearch::-webkit-search-decoration,
body.theme-dark header .ym-search input#topSearch::-webkit-search-cancel-button,
body.theme-dark header .ym-search input#topSearch::-webkit-search-results-button,
body.theme-dark header .ym-search input#topSearch::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
}

/* remove outline on Safari when focusing */
body.theme-dark header .ym-search input#topSearch:focus {
    -webkit-box-shadow: 0 0 0 3px rgba(110,231,183,0.06) !important;
    box-shadow: 0 0 0 3px rgba(110,231,183,0.06) !important;
}

/* ensure parent doesn't force white background */
body.theme-dark header .ym-search,
header .ym-search {
    background: transparent !important;
}

/* small screens: make search full width in mobile panel */
@media (max-width:880px) {
  #ymMobile .ym-search input#topSearch,
  #ymMobile input[type="search"] {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}




/* ===== FORCE MOBILE STACK - highest priority overrides ===== */
/* Applied when viewport <= 900px to ensure aside stacks under main content */
@media (max-width: 900px) {

  /* Make any outer layout wrapper behave as block (undo grid/flex) */
  .page-wrapper, .layout, .content-wrapper, .main-container, .content, .wrap, .site-content, .row, .container > .row, .container > .layout {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  /* Force main and aside full width and normal flow */
  main, .main, .content-area, section, article {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: static !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  aside, .sidebar, .right-column, .secondary, aside[role="complementary"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: static !important;
    margin: 12px 0 0 0 !important;
    box-sizing: border-box !important;
  }

  /* Remove any inline transforms/positioning that could keep aside visible */
  aside * { transform: none !important; }
  aside { top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; }

  /* If some parent used CSS columns, clear them */
  .container, .page-wrapper, .layout { column-count: 0 !important; }

  /* Also force z-index collapse so aside cannot float above content */
  aside, .sidebar { z-index: auto !important; }

  /* Prevent horizontal overflow caused by fixed widths */
  [style*="width:"] { max-width: 100% !important; box-sizing: border-box !important; }

  /* Extra: ensure images/iframes inside aside don't push layout */
  aside img, aside iframe, aside video { max-width: 100% !important; height: auto !important; }

  /* Force scroll locking fixes (optional) */
  html, body { overflow-x: hidden !important; }
}

/* YM_WAVEFORM_SPOTIFY_CSS - styling for waveform */
#playerWave { border-radius:8px; background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00)); padding:6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }
.player-spot .btn.primary { background: linear-gradient(90deg,#1db954,#6ee7b7); color:#012; font-weight:700; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.player-spot .time{ color: var(--muted); font-weight:600; }

/* Style the navigation menu */
.topnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* --- YuMuzika header styles --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background:#111;
  color:#fff;
  z-index:1000;
  border-radius:4px;
}

/* Basic layout */
.ym-header {
  background: var(--ym-header-bg, #0f1724);
  color: var(--ym-header-fg, #ffffff);
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.ym-header__inner {
  display:flex;
  align-items:center;
  gap:16px;
  height:72px;
  padding:10px 16px;
  justify-content:space-between;
}

/* Brand & toggle */
.ym-brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.ym-logo img {
  display:block;
  height:40px;
  width:auto;
  object-fit:contain;
}

/* Hamburger */
.ym-toggle {
  display:none;
  background:transparent;
  border:0;
  padding:6px;
  cursor:pointer;
}
.ym-toggle__bar {
  display:block;
  width:22px;
  height:2px;
  margin:4px 0;
  background: #fff;
  border-radius:2px;
}

/* Nav */
.ym-nav {
  display:flex;
  align-items:center;
  gap:12px;
}
.ym-nav__list {
  list-style:none;
  display:flex;
  gap:12px;
  margin:0;
  padding:0;
}
.ym-nav__list a {
  color:inherit;
  text-decoration:none;
  padding:8px 10px;
  border-radius:6px;
  font-weight:600;
}
.ym-nav__list a:hover,
.ym-nav__list a:focus {
  background: rgba(255,255,255,0.06);
}

/* Actions */
.ym-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

/* Search */
.ym-search {
  display:flex;
  align-items:center;
  gap:8px;
  max-width:520px;
}
.ym-search input[type="search"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  padding:8px 12px;
  border-radius:8px;
  color: #fff;
  min-width:160px;
  outline: none;
}
.ym-search input[type="search"]::placeholder { color: rgba(255,255,255,0.6); }
.ym-search__btn {
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:16px;
}

/* Buttons */
.ym-btn {
  text-decoration:none;
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  font-weight:600;
}
.ym-btn--primary {
  background: #ff5a5a;
  color: #fff;
  border: none;
}
.ym-btn--ghost {
  background: transparent;
  opacity:0.9;
}

/* Spacer to avoid content jump under sticky header */
.ym-header-spacer {
  height:72px;
}

/* Responsive */
@media (max-width: 900px) {
  .ym-header__inner { height:64px; padding:8px 12px; }
  .ym-search { display:none; } /* hide search in header on small screens (we could show later in mobile menu) */
  .ym-toggle { display:inline-flex; }
  .ym-nav {
    position:fixed;
    top:64px;
    right:0;
    width:280px;
    max-width:80%;
    height:calc(100vh - 64px);
    background: var(--ym-header-bg, #0f1724);
    transform: translateX(100%);
    transition: transform 220ms ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.45);
    padding:16px;
    flex-direction:column;
    gap:12px;
  }
  .ym-nav.is-open { transform: translateX(0); }
  .ym-nav__list { flex-direction:column; gap:6px; }
  .ym-actions { gap:8px; }
  .ym-header-spacer { height:64px; }
}

/* Utility */
.visually-hidden {
  position:absolute !important;
  height:1px;width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}
.container {
  max-width:1100px;
  margin:0 auto;
  padding:0 12px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
}

.alert.success {
    background: #d3f8d3;
    padding: 12px 15px;
    border-radius: 6px;
    color: #185c18;
    font-weight: 500;
}
.rating-box .star { 
  font-family: "Segoe UI Symbol", "Arial", sans-serif;
  color: #cfcfcf;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.rating-box .star[aria-pressed="true"] { color: #f6c945; }

.rating-box {
    user-select: none;
}
