/*
Theme Name: Sharkcore
Theme URI: https://www.dfkbananas.info/
Author: D.F.K. Bananas
Author URI: https://www.dfkbananas.info/
Description: Dark sharkcore block theme for D.F.K. Bananas — music, machines, and the sharkcore arcade. Deep navy base, banana-yellow accent, built for full site editing.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sharkcore
Tags: dark, block-theme, full-site-editing, music, one-column, custom-colors
*/

/* ---------------------------------------------------------------------------
   Sharkcore extras — enqueued on front end + editor via functions.php
--------------------------------------------------------------------------- */

:root {
  --sc-glow: 0 0 0 1px rgba(255, 210, 63, 0.25), 0 12px 40px -12px rgba(255, 210, 63, 0.18);
  --sc-card-border: 1px solid var(--wp--preset--color--line, #1e2b44);
}

::selection {
  background: var(--wp--preset--color--banana, #ffd23f);
  color: var(--wp--preset--color--base, #0a111e);
}

html {
  scroll-behavior: smooth;
}

/* Card treatment ---------------------------------------------------------- */
.sc-card {
  border: var(--sc-card-border);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sc-card:hover {
  transform: translateY(-4px);
  border-color: var(--wp--preset--color--banana, #ffd23f);
  box-shadow: var(--sc-glow);
}

.sc-card--blue:hover {
  border-color: var(--wp--preset--color--shark-blue, #4da3ff);
  box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.3), 0 12px 40px -12px rgba(77, 163, 255, 0.2);
}

/* Kicker / eyebrow labels ------------------------------------------------- */
.sc-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Banana underline on content links -------------------------------------- */
.entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Buttons ----------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(255, 210, 63, 0.45);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--contrast, #e9eef7);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--contrast, #e9eef7);
  color: var(--wp--preset--color--base, #0a111e);
  box-shadow: 0 8px 24px -8px rgba(77, 163, 255, 0.35);
}

/* Header ------------------------------------------------------------------ */
.sc-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--wp--preset--color--base, #0a111e) 82%, transparent);
  border-bottom: 1px solid var(--wp--preset--color--line, #1e2b44);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-bar .sc-header {
  top: 32px;
}

.sc-header .wp-block-navigation a {
  transition: color 140ms ease;
}

.sc-header .wp-block-navigation a:hover,
.sc-header .wp-block-navigation .wp-block-navigation-submenu:hover > a,
.sc-header .wp-block-navigation .wp-block-navigation-submenu:hover > button {
  color: var(--wp--preset--color--banana, #ffd23f);
}

/* Highlight the page you're on */
.sc-header .wp-block-navigation a[aria-current="page"] {
  color: var(--wp--preset--color--banana, #ffd23f);
}

/* Dropdown submenus: dark card panel */
.sc-header .wp-block-navigation .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--card, #0d1626) !important;
  border: 1px solid var(--wp--preset--color--line, #1e2b44) !important;
  border-radius: 12px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 210, 63, 0.06);
  padding: 0.4rem !important;
  min-width: 230px;
  margin-top: 0.5rem;
}

.sc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: var(--wp--preset--color--contrast, #e9eef7);
  border-radius: 8px;
  padding: 0.55rem 0.8rem !important;
  transition: background-color 120ms ease, color 120ms ease;
}

.sc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--surface, #101a2d);
  color: var(--wp--preset--color--banana, #ffd23f);
}

/* Submenu chevron color follows the label */
.sc-header .wp-block-navigation .wp-block-navigation__submenu-icon {
  color: var(--wp--preset--color--muted, #9aa8c0);
}

.sc-header .wp-block-navigation .wp-block-navigation-submenu:hover .wp-block-navigation__submenu-icon {
  color: var(--wp--preset--color--banana, #ffd23f);
}

/* Hero -------------------------------------------------------------------- */
.sc-hero {
  position: relative;
  overflow: hidden;
}

.sc-hero-title {
  text-wrap: balance;
}

/* Embeds: give video cards the same dark card frame ----------------------- */
.entry-content .wp-block-embed {
  border-radius: 12px;
  overflow: hidden;
}

.entry-content .wp-block-embed iframe {
  border-radius: 12px;
}

/* Subtle top glow divider -------------------------------------------------- */
.sc-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--wp--preset--color--banana, #ffd23f), transparent);
  opacity: 0.35;
}

/* Footer ------------------------------------------------------------------ */
.sc-footer {
  border-top: 1px solid var(--wp--preset--color--line, #1e2b44);
}

/* Reduce motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sc-card,
  .wp-element-button,
  .wp-block-button__link {
    transition: none;
  }
  .sc-card:hover,
  .wp-element-button:hover,
  .wp-block-button__link:hover {
    transform: none;
  }
}
