/* Base Colors Inherited */
:root {
  --gold-color: #a2823b;
  --accent-color: #dddddd;
  --background-color: #0d0902;
  --section-background: #0d0902;
}

/* Unified dark background everywhere */
body,
body.clipstore-page,
body.clipstore-page footer {
	background-color: black;
}

body .page,
body.clipstore-page header,
body.clipstore-page .filters,
body.clipstore-page .videos {
  background-color: var(--background-color);
  color: var(--gold-color);
}

/* HEADER */
body.clipstore-page header {
  padding: 20px 0;
  margin-bottom: 20px;
}

body.clipstore-page .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

@keyframes headerLogoGlow {
  0% {
    filter: drop-shadow(0 0 0px #c49a50);
  }
  50% {
    filter: drop-shadow(0 0 0.8px #c49a50);
  }
  100% {
    filter: drop-shadow(0 0 0px #c49a50);
  }
}

body.clipstore-page .header-logo {
  height: 70px;
  transition: filter 0.3s;
  animation: headerLogoGlow 6s ease-in-out infinite;
}

body.clipstore-page .search-box-header {
  flex: 1;
  max-width: 400px;
  padding: 10px 20px;
  border: 2px solid var(--gold-color);
  border-radius: 30px;
  background-color: transparent;
  color: var(--gold-color);
  font-size: 0.95rem;
}

body.clipstore-page .search-box-header::placeholder {
  color: var(--gold-color);
  opacity: 0.7;
}

body.clipstore-page .header-link {
  font-weight: 600;
}

/* FILTERS */
body.clipstore-page .filters {
  padding: 15px 20px;
  margin-bottom: 4px;         /* Even closer to grid */
}

body.clipstore-page .tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE and Edge */
}

body.clipstore-page .tags::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari */
}

body.clipstore-page .tag {
  background-color: transparent;
  border: 1px solid var(--gold-color);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--gold-color);
  font-size: 0.85rem;          /* Smaller text */
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

body.clipstore-page .tag:hover {
  background-color: var(--gold-color);
  color: var(--background-color);
}

.filters .tag.active {
  background-color: var(--gold-color);
  color: var(--background-color);
  border: 1px solid var(--gold-color);
}

/* VIDEOS GRID */
body.clipstore-page .videos {
  padding: 30px 20px;
  padding-top: 10px;
}

body.clipstore-page .videos-title {
  margin-bottom: 30px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-color);
}

body.clipstore-page .videos-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.clipstore-page .video-card p {
  font-size: 1rem;
  color: var(--gold-color);
  transition: color 0.3s;
  text-align: left;
  margin-top: 8px;
}

body.clipstore-page .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;             
  color: var(--gold-color);
  opacity: 0.95;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.8);
  transition: color 0.3s;
}

@media (max-width: 600px) {
  body.clipstore-page .play-icon {
    font-size: 2.2rem;
  }
}

body.clipstore-page .play-icon:hover {
  color: var(--accent-color);
  cursor: pointer;
}

/* FOOTER */
body.clipstore-page footer {
  padding: 20px 0;
}

body.clipstore-page .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--gold-color);
}

body.clipstore-page .footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.clipstore-page .footer-logo {
  height: 60px;
}

body.clipstore-page .footer-links a {
  margin-left: 20px;
}

/* PAGINATION */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 2px;
  flex-wrap: wrap;
}

.pagination-controls button {
  background-color: transparent;
  border: 1px solid var(--gold-color);
  color: var(--gold-color);
  padding: 6px 14px;
  margin: 0 5px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.pagination-controls button.active {
  background-color: var(--gold-color);
  color: var(--background-color);
  font-weight: 600;
}

.pagination-controls button:hover {
  background-color: var(--gold-color);
  color: var(--background-color);
}

body.clipstore-page .header-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

body.clipstore-page .header-link.active-page {
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  opacity: 1;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-modal.hidden {
  display: none;
}

.video-modal .modal-content h2 {
  margin-top: 0;
}

.video-modal .modal-content a {
  color: var(--gold-color);
  display: inline-block;
  margin-right: 15px;
  margin-top: 10px;
  text-decoration: underline;
}

.video-modal .modal-content {
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 90vh;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  background-color: var(--background-color);
  color: var(--gold-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.video-modal .modal-content > video {
  flex: 2;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.video-modal .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
}

.video-modal .modal-desc {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 10px;
}

.video-modal .modal-body h2 {
  margin: 0 0 10px 0;
  flex-shrink: 0;
}

.video-modal .modal-links {
  border-top: 1px solid var(--gold-color);
  padding-top: 10px;
  margin-top: 10px;
}

.video-modal .buying-title {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.video-modal .modal-links a {
  color: var(--gold-color);
  display: inline-block;
  margin-right: 15px;
  margin-top: 5px;
  text-decoration: underline;
  font-size: 0.95rem;
}

.modal-back-button {
  position: absolute;
  top: 15px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--gold-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 24px;
  backdrop-filter: blur(2px);
  transition: background 0.3s, color 0.3s, backdrop-filter 0.3s;
}

.modal-back-button:hover {
  background-color: rgba(0, 0, 0, 0.65);
  color: var(--accent-color);
  backdrop-filter: blur(3px);
}

@media (max-width: 768px) {
  body.clipstore-page .header-links {
    display: none;
  }
}

@media (min-width: 1000px) {
  body.clipstore-page .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  body.clipstore-page header {
    padding: 10px 0;
    margin-bottom: 10px;
  }

  body.clipstore-page .filters {
    padding: 8px 12px;
    margin-bottom: 2px;
  }

  body.clipstore-page .videos {
    padding: 15px 12px;
    padding-top: 6px;
  }

  body.clipstore-page .videos-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  body.clipstore-page .videos-grid {
    gap: 15px;
  }
}

.modal-links-under-video {
  display: none;
}

/* On larger screens - switch to horizontal layout */
@media (min-width: 900px) {
  .video-modal .modal-content {
    flex-direction: row;
    height: 80vh;
    max-width: 100%;
  }

  .modal-left {
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-right: 10px;
  }

  .video-wrapper {
    width: 100%;
    max-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }

  .modal-body {
    flex: 1 1 50%;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .video-modal .modal-content {
    height: 95dvh;
    max-height: 95dvh;
    width: 95%;
    padding: 10px;
  }

  .video-modal .video-wrapper > video {
    flex: none;
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
  }

  .video-modal .modal-body {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .video-modal .modal-desc {
    padding-right: 5px;
  }

  .video-modal .modal-links {
    padding-top: 8px;
    margin-top: 8px;
  }

  .video-modal .buying-title {
    font-size: 1rem;
  }

  .video-modal .modal-links a {
    font-size: 0.9rem;
    margin-right: 10px;
  }
}

.modal-tags-under-video {
  display: none;
}

.modal-tags-under-video span::before {
  content: "# ";
}

@media (min-width: 900px) {
  .modal-tags-under-video {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
  }

  .modal-tags-under-video span {
    background-color: rgba(162, 130, 59, 0.2);
    color: var(--gold-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s;
  }

  .modal-tags-under-video span:hover {
    background-color: rgba(162, 130, 59, 0.4);
  }
}




