/* Gorillaz-Inspired Website Styles - Persian/RTL Version */

/* Import Persian Font - Vazir */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --accent-color: #00d9ff;
  --accent-secondary: #ff006e;
  --accent-tertiary: #ffbe0b;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --transition-speed: 0.3s;
  --font-persian: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-persian);
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RTL Specific Styles */
[dir="rtl"] body {
  font-size: 1.05em; /* 5% larger for Persian readability */
  line-height: 1.8; /* More space for diacritics */
  direction: rtl;
  text-align: right;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #3a3a3a 100%);
  z-index: 1000;
  padding: 0.7rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #c41e3a;
}

nav {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* RTL: Keep normal direction - HTML order already correct for display */

.nav-row-top {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

/* RTL: Reduce letter spacing for Persian */
[dir="rtl"] .logo {
  letter-spacing: 0.5px;
  font-size: 2.2rem;
}

.logo:hover {
  color: var(--accent-secondary);
}

/* Dual Logo Support */
.logo-left,
.logo-right {
  text-decoration: none;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  display: flex;
  align-items: center;
  height: 50px;
  overflow: hidden;
}

.logo-left img,
.logo-right img {
  height: 100px;
  width: auto;
  object-fit: cover;
  object-position: center;
}

.logo-left:hover,
.logo-right:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* RTL positioning handled by flex-direction: row-reverse on nav */

/* Logo inside nav-links - removed, logos are now in top row */

.nav-links {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.3rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 20px;
  border: 1px solid #c41e3a;
  transition: all var(--transition-speed);
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* RTL: Adjust font size */
[dir="rtl"] .nav-links a {
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: linear-gradient(135deg, #c41e3a 0%, #a01828 100%);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(196, 30, 58, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all var(--transition-speed);
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Banner Sections */
.banner {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(255, 0, 110, 0.3));
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.banner:hover::before {
  opacity: 1;
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  transform: translateY(0);
  transition: transform var(--transition-speed);
}

.banner:hover .banner-content {
  transform: translateY(-20px);
}

.banner h1 {
  font-size: 5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* RTL: Reduced letter spacing for Persian */
[dir="rtl"] .banner h1 {
  letter-spacing: 2px;
  font-size: 4.5rem;
}

.banner p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

[dir="rtl"] .banner p {
  font-size: 1.6rem;
}

.banner-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

/* RTL: Reduce letter spacing for buttons */
[dir="rtl"] .banner-btn {
  letter-spacing: 0.5px;
  padding: 1.2rem 3.5rem;
}

.banner-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transition: left var(--transition-speed);
  z-index: -1;
}

/* RTL: Button hover animation from right */
[dir="rtl"] .banner-btn::before {
  left: auto;
  right: -100%;
  transition: right var(--transition-speed);
}

.banner-btn:hover {
  color: var(--primary-bg);
}

.banner-btn:hover::before {
  left: 0;
}

/* RTL: Button hover animation completion */
[dir="rtl"] .banner-btn:hover::before {
  left: auto;
  right: 0;
}

/* Platform Links - Music Platform Icons */
.platform-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1.2rem;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 12px;
  border: 2px solid rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.7rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 18px rgba(0, 217, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.platform-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.platform-icon:hover::before {
  left: 100%;
}

.platform-icon:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 50px rgba(0, 217, 255, 0.6), 0 0 30px rgba(255, 0, 110, 0.4);
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
}

.platform-icon i {
  transition: all 0.4s;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.platform-icon:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Individual platform colors */
.platform-icon:nth-child(1) {
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
}

.platform-icon:nth-child(2) {
  background: linear-gradient(135deg, #FA243C 0%, #ff5566 100%);
}

.platform-icon:nth-child(3) {
  background: linear-gradient(135deg, #FF0000 0%, #ff4444 100%);
}

.platform-icon:nth-child(4) {
  background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
}

.platform-icon:nth-child(5) {
  background: linear-gradient(135deg, #E4405F 0%, #f77f9a 100%);
}

.platform-icon:nth-child(1):hover {
  box-shadow: 0 20px 50px rgba(29, 185, 84, 0.6), 0 0 30px rgba(29, 185, 84, 0.4);
}

.platform-icon:nth-child(2):hover {
  box-shadow: 0 20px 50px rgba(250, 36, 60, 0.6), 0 0 30px rgba(250, 36, 60, 0.4);
}

.platform-icon:nth-child(3):hover {
  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
}

.platform-icon:nth-child(4):hover {
  box-shadow: 0 20px 50px rgba(255, 85, 0, 0.6), 0 0 30px rgba(255, 85, 0, 0.4);
}

.platform-icon:nth-child(5):hover {
  box-shadow: 0 20px 50px rgba(228, 64, 95, 0.6), 0 0 30px rgba(228, 64, 95, 0.4);
}

/* Different banner backgrounds */
.banner-1 {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.banner-2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.banner-3 {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.banner-4 {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

/* Album Cover in Banner */
.banner-with-cover {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 0 4rem;
}

.album-cover-container {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.album-cover {
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  background-color: #000;
}

.album-cover:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.banner-with-cover .banner-content {
  text-align: right;
  max-width: 600px;
}

/* RTL: Adjust layout for Persian */
[dir="rtl"] .banner-with-cover .banner-content {
  text-align: right;
}

/* Content Sections */
.content-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--accent-color);
}

/* RTL: Reduce letter spacing for section titles */
[dir="rtl"] .section-title {
  letter-spacing: 1px;
  font-size: 3.2rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--secondary-bg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: #000;
}

/* Gallery Styles */
.gallery-item {
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(0, 217, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 1.5rem;
  background-color: #000;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5), 0 0 30px rgba(255, 0, 110, 0.3);
}

/* Footer */
footer {
  background-color: var(--secondary-bg);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: color var(--transition-speed);
}

.social-links a:hover {
  color: var(--accent-color);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Responsive logos for mobile */
  .logo-left,
  .logo-right {
    height: 35px;
  }

  .logo-left img,
  .logo-right img {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left var(--transition-speed);
    border-top: 2px solid #c41e3a;
  }

  /* RTL: Mobile menu slides from right */
  [dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
    transition: right var(--transition-speed);
  }

  .nav-links.active {
    left: 0;
  }

  /* RTL: Active state for mobile menu */
  [dir="rtl"] .nav-links.active {
    left: auto;
    right: 0;
  }

  /* Album cover responsive */
  .banner-with-cover {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: auto;
    height: auto;
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .album-cover {
    width: 300px;
    height: 300px;
  }

  .album-cover-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .banner-with-cover .banner-content {
    text-align: center;
  }

  /* Platform links responsive */
  .platform-links {
    gap: 0.8rem;
    padding: 1rem;
    flex-wrap: wrap;
  }

  .platform-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .banner h1 {
    font-size: 3rem;
  }

  .banner p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  main {
    overflow-x: hidden;
  }

  .content-section {
    padding: 3rem 1rem;
    overflow-x: hidden;
  }

  /* Fix store page specific issues */
  .content-section > div {
    max-width: 100%;
    overflow-x: hidden;
  }

  .content-section .grid {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .banner-with-cover {
    padding-top: 80px;
  }

  .album-cover {
    width: 250px;
    height: 250px;
  }

  .banner h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .banner p {
    font-size: 1rem;
  }

  .banner-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .platform-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .gallery-image {
    height: 300px;
  }

  /* Fix inline styled divs with max-width that cause scroll */
  .content-section > div[style*="max-width"] {
    max-width: 100% !important;
    padding: 0 1rem;
  }

  /* Fix grid template columns that have minmax */
  .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix two-column layouts (like Safineh album feature) */
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Fix flex layouts with gap that might overflow */
  div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}
