/* ========================================
   GLOBAL STYLES
   ======================================== */

/* ===== GLOBAL BASE SIZE ===== */
body,
p,
div:not(nav div):not(header div),
section,
article,
.space-y-6 {
  font-size: 0.9rem !important;
}

/* ===== CONTENT HEADINGS ===== */
h1 { font-size: 1.8rem !important; }
h2 { font-size: 1.5rem !important; }
h3 { font-size: 1.3rem !important; }
h4 { font-size: 1.1rem !important; }
h5 { font-size: 1rem !important; }
h6 { font-size: 0.9rem !important; }

/* ===== FOOTER ===== */
footer,
footer * {
  font-size: 0.85rem !important;
}

/* ===== AVATAR IMAGE ===== */
img[class*="avatar"],
.avatar,
img[src*="avatar"],
img[alt*="Rat"] {
  border: none !important;
}

/* ===== SMOOTH SCROLLING & ANCHOR HIGHLIGHTS ===== */
html {
  scroll-behavior: smooth;
}

.magazine-item:target {
  animation: highlight 2s ease;
}

@keyframes highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 134, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(125, 134, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 134, 255, 0);
  }
}
/* ========================================
   SELECTION STYLES
   ======================================== */
/* Text selection color */
::selection {
    background-color: #7D86FF;
    color: #ffffff; /* White text on purple background */
}

/* Firefox compatibility */
::-moz-selection {
    background-color: #7D86FF;
    color: #ffffff;
}

/* ========================================
   MAGAZINE & COOL ROT STYLES
   ======================================== */

/* ===== MAGAZINE GRID LAYOUT ===== */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.magazine-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.magazine-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.magazine-item img {
  width: 100%;
  aspect-ratio: 17 / 22;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.magazine-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem !important;
}

.magazine-item p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0;
  font-size: 0.9rem !important;
}

.magazine-item .price {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem !important;
  font-weight: bold;
  color: #fff;
  margin: 0;
} 

/* ===== CONTRIBUTORS TOGGLE (Collapsible Sections) ===== */
.contributors-toggle {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  margin-bottom: 0.3rem !important;
  margin-top: 0 !important;
}

.contributors-toggle summary {
  cursor: pointer;
  font-weight: bold;
  color: #7D86FF !important;
  user-select: none;
  padding: 0.2rem;
  list-style: none;
  border: none !important;
  border-bottom: none !important;
  background: none !important;
  outline: none !important;
}

.contributors-toggle summary::-webkit-details-marker {
  display: none;
}

.contributors-toggle summary::before {
  content: '▶ ';
  display: inline-block;
  transition: transform 0.2s;
  color: #7D86FF !important;
  margin-right: 0.5rem; 
}

.contributors-toggle[open] summary::before {
  transform: rotate(90deg);
}

.contributors-toggle summary:hover {
  color: #9DA6FF !important;
}

/* ===== CONTRIBUTORS LIST ===== */
.contributors-list {
  margin-top: 0.3rem !important;
  padding-top: 0.3rem !important;
  padding-bottom: .7rem !important;
  margin-left: 0.7rem !important;
  border: none !important;
  border-top: none !important;
}

.contributors-list a {
  color: #7D86FF !important;
  text-decoration: none;
  transition: color 0.2s;
}

.contributors-list a:hover {
  color: #20C20E !important;
  text-decoration: underline;
}

/* ===== VOLUME LEGEND (KEY) ===== */
.volume-legend {
  text-align: right !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-bottom: 0.3rem !important;
  padding-right: 0.5rem !important;
}

.volume-legend span {
  margin-left: 1rem !important;
}

.volume-legend i {
  font-style: italic !important;
}

.volume-item-with-legend {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: none !important;
}

.volume-content {
  flex: 1 !important;
}

.volume-legend-inline {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic !important;
  margin-left: 1rem !important;
  white-space: nowrap !important;
  text-align: right !important;
}

/* ===== VOLUME LIST ===== */
.volume-list {
  margin-top: 0.3rem !important;
  padding-top: 0.3rem !important;
  padding-bottom: .1rem !important;
  margin-left: 0.7rem !important;
  border: none !important;
  border-top: none !important;
}

.volume-item {
  border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: none !important;
}

.volume-item strong {
  color: #7D86FF !important;
  min-width: 60px;
  display: inline-block;
}

.volume-item a {
  color: #7D86FF !important;
  text-decoration: none;
  transition: color 0.2s;
}

.volume-item a:hover {
  color: #20C20E !important;
  text-decoration: underline;
}



/* ===== ARTIST LINKS FORMATTING ===== */
.artist-links {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.artist-paragraph {
  text-align: center;
  margin: 1.5rem auto;
  line-height: 2;
  color: white !important;
}

.artist-links h2 {
  text-align: center;
  margin: 2rem 0 1.5rem 0;
  color: white !important;
}

.artist-links hr {
  margin: 2rem auto;
  max-width: 200px;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.artist-links a {
  color: #7D86FF !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.artist-links a:hover {
  color: #6b75e6 !important;
  text-decoration: underline;
}

.artist-links h5 {
  text-align: left;
  margin: 2rem 0 1rem 0;
  color: white !important;
}

/* ===== ARTIST LINKS JUSTIFIED (Cool Rot Page) ===== */
.artist-links-justified {
  max-width: 800px;
  margin: 0 auto;
}

.artist-links-justified p {
  text-align: justify;
  margin: 1.5rem auto;
  line-height: 1.6;
  color: white !important;
  font-size: 0.85rem !important;
}

.artist-links-justified h5 {
  text-align: left;
  margin: 2rem 0 1rem 0;
  color: white !important;
}

.artist-links-justified a {
  color: #7D86FF !important;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem !important;
}

.artist-links-justified a:hover {
  color: #6b75e6 !important;
  text-decoration: underline;
}

/* ===== SOLD OUT & COMING SOON BADGES ===== */
.sold-out-badge,
.coming-soon-badge {
  display: inline-block;
  color: rgba(255, 255, 255, 0.6) !important;
  font-style: italic;
  font-size: 0.9rem !important;
  font-weight: normal;
}

/* ===== MAGAZINE RESPONSIVE ===== */
@media (max-width: 768px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MERCH & SHOPPING CART STYLES
   ======================================== */

/* ===== MERCH GRID LAYOUT ===== */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.merch-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.merch-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.merch-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.merch-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem !important;
}

.merch-item p {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0.5rem 0;
  font-size: 0.9rem !important;
}
 
.merch-item .price {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem !important;
  font-weight: bold;
  color: #fff !important;
}

/* ===== PRICE AND CART ICON ROW ===== */
.price-cart-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ===== CART ICON BUTTON ===== */

.cart-icon-btn:disabled {
    cursor: pointer;
    opacity: 1;
    pointer-events: none; /* Prevents any interaction during animation */
}


.cart-icon-btn {
  background-color: transparent !important;
  color: #7D86FF !important;
  border: none !important;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.85rem !important;
  padding: 0;
}

.cart-icon-btn:hover:not(:disabled) {
  color: #6b75e6 !important;
  transform: scale(1.15);
}

.cart-icon-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.cart-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #666 !important;
}

/* ===== CART PAGE ===== */
.cart-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-item {
  background: #1a1a1a !important;
  color: white !important;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border: 1px solid #333 !important;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.item-details {
  flex: 1;
}

.item-name {
  font-size: 1.2rem !important;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white !important;
}

.item-price {
  color: #999 !important;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background-color: #7D86FF !important;
  color: white !important;
  border: none !important;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem !important;
  transition: background-color 0.3s;
}

.quantity-btn:hover {
  background-color: #6b75e6 !important;
}

.quantity {
  min-width: 30px;
  text-align: center;
  color: white !important;
}

.item-total {
  font-size: 1.2rem !important;
  font-weight: bold;
  min-width: 80px;
  text-align: right;
  color: white !important;
}

.remove-btn {
  background-color: #f44336 !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #d32f2f !important;
}

/* ===== CART SUMMARY ===== */
.cart-summary {
  background: #1a1a1a !important;
  color: white !important;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  border: 1px solid #333 !important;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1.1rem !important;
}

.summary-row.total {
  border-top: 2px solid #7D86FF !important;
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.3rem !important;
  font-weight: bold;
  color: #7D86FF !important;
}

/* ===== CHECKOUT BUTTONS ===== */
.checkout-btn,
#checkout-btn {
  width: 100%;
  background-color: #7D86FF !important;
  color: white !important;
  border: none !important;
  padding: 1rem;
  font-size: 1.1rem !important;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.checkout-btn:hover:not(:disabled),
#checkout-btn:hover:not(:disabled) {
  background-color: #6b75e6 !important;
  transform: scale(1.02);
}

.checkout-btn:disabled,
#checkout-btn:disabled {
  background-color: #555 !important;
  cursor: wait;
  opacity: 0.5;
  transform: none;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #7D86FF !important;
  text-decoration: none;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* ===== EMPTY CART ===== */
.empty-cart {
  text-align: center;
  padding: 3rem;
  background: #1a1a1a !important;
  border-radius: 8px;
  border: 1px solid #333 !important;
}

.empty-cart p {
  color: #999 !important;
  font-size: 1.2rem !important;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: #7D86FF !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #6b75e6 !important;
}

/* ===== STRIPE CHECKOUT MESSAGES ===== */
.success-message,
.canceled-message {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 1rem !important;
  text-align: center;
}

.success-message {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.canceled-message {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* ===== CART RESPONSIVE ===== */
@media (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .item-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }
}

/* ========================================
  Shipping rate options styling 
   ======================================== */
 
.shipping-option {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.shipping-option:hover {
  background-color: #f9f9f9;
}

.shipping-option.default-option {
  background-color: #f0f8ff;
  border: 2px solid #4CAF50;
}

.shipping-option input[type="radio"] {
  margin-right: 10px;
}

.shipping-option label {
  cursor: pointer;
  display: block;
  width: 100%;
}

.shipping-option small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 0.9em;
}

.badge {
  background-color: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-left: 8px;
  font-weight: normal;
}

#default-shipping-info {
  margin: 15px 0;
  padding: 10px;
  background-color: #e8f5e9;
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
}

/* ========================================
   RELEASES STYLES
   ======================================== */

/* ===== RELEASES GRID LAYOUT ===== */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.release-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.release-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.release-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.release-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem !important;
}

.release-item .artist {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0.5rem 0;
  font-size: 0.9rem !important;
  font-style: italic;
}

.release-item p {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0.5rem 0;
  font-size: 0.9rem !important;
}

/* ===== RELEASE TAGS ===== */
.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.release-tags .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px;
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease;
}

.release-tags .tag:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== RELEASES RESPONSIVE ===== */
@media (max-width: 768px) {
  .releases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .releases-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   RTL LANGUAGE SUPPORT
   ======================================== */

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] nav,
html[dir="rtl"] .menu,
html[dir="rtl"] header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .content {
  text-align: right;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 2rem;
  padding-left: 0;
}

html[dir="rtl"] blockquote {
  border-left: none;
  border-right: 4px solid #ccc;
  padding-left: 0;
  padding-right: 1rem;
  margin-left: 0;
  margin-right: 1rem;
}

html[dir="rtl"] .socials {
  flex-direction: row-reverse;
}

html[dir="rtl"] .merch-grid,
html[dir="rtl"] .releases-grid,
html[dir="rtl"] .magazine-grid {
  direction: rtl;
}

html[dir="rtl"] footer {
  text-align: right;
}

html[dir="rtl"] .article-meta {
  flex-direction: row-reverse;
}

html[dir="rtl"] .float-left {
  float: right;
}

html[dir="rtl"] .float-right {
  float: left;
}

html[dir="rtl"] #languageDropdown {
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] #languageBtn {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] #languageDropdown a span.absolute {
  left: auto;
  right: 3px;
}

html[dir="rtl"] nav ul.md\:space-x-6 {
  direction: rtl;
}

html[dir="rtl"] nav ul li {
  margin-left: 1.5rem;
  margin-right: 0;
}

html[dir="rtl"] nav a span.absolute {
  left: auto;
  right: 0;
}

html[dir="rtl"] footer .space-x-6 > * {
  margin-left: 0;
  margin-right: 1.5rem;
}

html[dir="rtl"] footer .space-x-6 > *:last-child {
  margin-right: 0;
}

/* ===== LANGUAGE DROPDOWN UNDERLINE ===== */
#languageDropdown a {
  display: block;
}

#languageDropdown a > span {
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}

#languageDropdown a > span > span.absolute {
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}

#languageDropdown a:hover > span > span.absolute {
  width: 100%;
}

/* ========================================
   NAVIGATION & HEADER (MUST BE LAST)
   ======================================== */

/* Site title */
header a[aria-label="Homepage"] > span.text-white {
  font-size: 1.3rem !important;
}

/* Menu links */
header nav ul li a,
header nav ul li a > span:first-child,
nav[aria-label="Primary"] ul li a,
nav[aria-label="Primary"] ul li a > span:first-child {
  font-size: 1rem !important;
}

/* Responsive overrides */
@media (min-width: 640px) {
  header a[aria-label="Homepage"] > span.text-white {
    font-size: 1.3rem !important;
  }
  nav ul li a,
  nav ul li a span:not(.absolute) {
    font-size: 1rem !important;
  }
}

@media (min-width: 768px) {
  header a[aria-label="Homepage"] > span.text-white {
    font-size: 1.3rem !important;
  }
  nav ul li a,
  nav ul li a span:not(.absolute) {
    font-size: 1rem !important;
  }
}

@media (min-width: 1024px) {
  header a[aria-label="Homepage"] > span.text-white {
    font-size: 1.3rem !important;
  }
  nav ul li a,
  nav ul li a span:not(.absolute) {
    font-size: 1rem !important;
  }
}
