/*
Theme Name: MusicSara
Theme URI: https://www.rtl-theme.com/musicsara-wordpress-theme/
Author: UniqueTheme
Author URI: https://uniquetheme.ir
Description: Modern Music Theme - Optimized & Restyled by GPT-5
Version: 2.0
License: GPL v2 or later
Text Domain: musicsara
*/

/* 🔹 GLOBAL RESETS & SCROLLBAR */
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #ec4899);
  border-radius: 12px;
  transition: all 0.3s ease;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ec4899, #a855f7);
}

/* 🔹 IMAGE ALIGNMENTS */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter {
  display: block;
  margin: 25px auto;
  max-width: 100%;
  height: auto;
}
.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}
.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

/* 🔹 CAPTIONS */
.wp-caption {
  max-width: 96%;
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-caption:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.wp-caption img {
  border: none;
  height: auto;
  max-width: 98%;
  border-radius: 8px;
}
.wp-caption p.wp-caption-text {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 5px;
}

/* 🔹 GALLERY */
.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 50%;
  padding: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
.gallery-item img {
  border-radius: 10px;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.gallery-item a:hover img {
  filter: brightness(0.8);
  transform: scale(1.04);
}

/* 🔹 GALLERY COLUMNS */
.gallery-columns-1 .gallery-item { max-width: 100%; }
.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.3%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item,
.gallery-columns-7 .gallery-item,
.gallery-columns-8 .gallery-item,
.gallery-columns-9 .gallery-item {
  display: none;
}

/* 🔹 SCREEN READER */
.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  padding: 15px 23px;
  background: #f1f1f1;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.6);
  z-index: 99999;
}

/* 🔹 COLORS & EFFECTS */
.color_404 { fill: var(--primaryColor) !important; }
.has-text-align-center { text-align: center; }
.aligncenter img {
  display: block;
  margin: 25px auto;
}

/* 🔹 LINKS & HOVER EFFECT */
a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
  color: #ec4899;
  text-shadow: 0 0 8px rgba(236,72,153,0.6);
}

/* 🔹 MODERN TOUCH */
body {
  background-color: #121212;
  color: #f1f1f1;
  line-height: 1.8;
  font-family: 'IRANSans', 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}
