/*
Theme Name: Da Manager 1
Theme URI: http://localhost/da_manager
Author: Custom Theme
Author URI: http://localhost
Description: Single-page scrolling theme with black background, white text, and smooth navigation
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: da-manager-1
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  position: relative;
  overflow-x: hidden;
  color: #fff;
  font-family: 'Franklin Gothic Medium', 'Arial', sans-serif;
  line-height: 1.6;
}

/* Film grain overlay */
body::before {
  content: "";
  display: block; /* <-- important */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
  background-image: 
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 5px
    );
  background-size: 3px 3px, 7px 7px, 100% 100%;
  background-position: 0 0, 4px 4px, 0 0;
  animation: grainMove 10s linear infinite;
}

/* optional slow movement for natural randomness */
@keyframes grainMove {
  0%   { background-position: 0 0, 4px 4px, 0 0; }
  50%  { background-position: 10px 5px, 1px 3px, 0 0; }
  100% { background-position: 0 0, 4px 4px, 0 0; }
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-branding img {
  max-width: 33%;
  height: auto;
  max-height: 80px;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: none;
}

/* Navigation */
nav {
  display: block;
}

#primary-menu-nav {
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ddd;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-top: 0;
  padding-top: 60px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  border-bottom: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Home Content Section */
.home-content {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.home-content-inner {
  font-size: 18px;
  line-height: 1.8;
}

.home-content-inner a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.home-content-inner a:hover {
  color: #ddd;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.4;
}

.hero-panel-text h2 {
  display: none;
}

#dm-hero-logo {
  position: absolute;
}

#dm-hero-logo img {
  max-width: 60%;
  opacity: 0.6;
}

@media (max-width: 768px) {
  #dm-hero-logo {
    position: absolute;
    bottom: 0;
    padding: 0;
  }

  #dm-socials .is-layout-flex {
    flex-wrap: nowrap;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  #dm-hero-logo img {
    max-width: 70%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #dm-hero-logo img {
    max-width: 75%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #dm-hero-logo img {
    max-width: 80%;
  }
}

/* Main Content Sections */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
  font-size: 40px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid #fff;
  padding-bottom: 20px;
}

section p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* BIO Section */
#bio {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.bio-image {
  flex: 0 0 300px;
}

.bio-image img {
  width: 100%;
  height: auto;
  border: 2px solid #fff;
}

.bio-content {
  flex: 1;
}

/* GIGS Section */
.gigs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.gig-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.gig-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.gig-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.gig-item p {
  font-size: 14px;
  color: #ddd;
}

/* VIDEOS Section */
.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.video-item {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* GALLERY Section */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* MERCH Section - WooCommerce Grid */
.merch-container,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product,
.merch-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover,
.merch-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.product img,
.merch-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info,
.merch-info {
  padding: 20px;
}

.product-info h3,
.merch-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-info .price,
.merch-info .price {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.product-info a,
.merch-info a,
.add_to_cart_button {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.product-info a:hover,
.merch-info a:hover,
.add_to_cart_button:hover {
  background-color: #ddd;
}

/* WooCommerce Overrides */
.woocommerce {
  color: #fff;
}

.woocommerce ul.products li.product {
  background-color: rgba(255, 255, 255, 0.05);
}

.woocommerce div.product {
  background-color: transparent;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #fff;
}

.woocommerce .price {
  color: #fff;
}

.woocommerce .button {
  background-color: #fff;
  color: #000;
  border: none;
}

.woocommerce .button:hover {
  background-color: #ddd;
  color: #000;
}

/* Hide related products section */
.related.products {
  display: none;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

footer p {
  margin-bottom: 10px;
}

/* Social Links Positioning */
#dm-socials {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border-bottom: none !important;
}

.wp-block-social-links {
  display: flex;
  list-style: none;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.wp-social-link {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-block-social-link-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.wp-block-social-link-anchor:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.wp-block-social-link-anchor svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.wp-social-link-label {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
  .site-branding {
    margin-bottom: 10px;
  }
  nav {
    width: 100%;
  }
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding: 0;
    margin: 0;
  }
  nav li {
    margin: 0;
    padding: 0;
    border: none;
  }
  nav a {
    font-size: 16px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 22px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  nav a {
    font-size: 14px;
  }
}
