body {
  font-family: sans-serif;
  background: #181a1b;
  color: #f1f1f1;
  margin: 0;
}

.site-header {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-title {
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 2px;
  display: inline-flex;
  gap: 12px;
}

.site-title .cubyz {
  color: #5cad4c;
  font-style: normal;
  text-shadow: 0 0 8px rgba(56, 119, 39, 0.534);
  transform: skew(-10deg);
  font-family: "BBH Sans Hegarty", sans-serif;
}

.bbh-sans-hegarty-regular {
  font-family: "BBH Sans Hegarty", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.addon-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.addon-card-link {
  display: inline-block;
  width: 300px; 
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.addon-card-link:hover {
  transform: translateY(-4px);
}

.addon-card {
  width: 300px;       
  min-height: 400px;  
  background: #2a2d2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  cursor: pointer;  
}

.addon-banner {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
}

.addon-icon {
  position: absolute;
  top: 80px;
  left: 16px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #2a2d2e;
  background: #333;
}

.addon-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-info {
  padding: 50px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 220px;
  position: relative;
}

.addon-info h2 {
  margin: 0;
  font-size: 1.2em;
  color: #fff;
}

.addon-info p {
  font-size: 0.95em;
  color: #ccc;
  margin: 6px 0 12px;
}

.addon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.addon-tag {
  background: #3c3f41;
  color: #aaa;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 6px;
}

.flex-spacer {
  flex-grow: 1;
}

.addon-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.addon-version-author {
  font-size: 0.8em;
  color: #999;
  line-height: 1.2;
}

.addon-footer-buttons {
  display: flex;
  gap: 8px;
}




.addon-download-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
  padding: 0;
  background: #4CAF50;
  pointer-events: auto; 
  position: relative;
  z-index: 10; 
}

.addon-download-btn:hover {
  background: #45a049;
}

.addon-download-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  display: block;
}


.download-btn,
.info-btn {
  background-color: #4CAF50;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
  margin: 10px 0;
}

.download-btn:hover {
  background-color: #45a049;
}

.info-btn {
  background-color: #007bff;
}

.info-btn:hover {
  background-color: #0056b3;
}

.download-btn svg,
.info-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.addon-detail-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 24px;
}


.addon-detail-main {
  flex: 3;
  display: flex;
  flex-direction: column;
}


.addon-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.addon-detail-header {
  display: flex;
  align-items: center;
  background: #222;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  gap: 20px;
  margin-bottom: 20px;
}

.addon-detail-header .addon-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #333;
  border: 2px solid #444;
  overflow: hidden;
}

.addon-detail-header .addon-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-header-text h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}

.addon-header-text p {
  margin: 6px 0;
  color: #ccc;
}

.addon-header-text .download-btn {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 0.95rem;
}


.tab-menu {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-menu button {
  background: #2a2d2e;
  color: #ccc;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.tab-menu button.active {
  background: #4CAF50;
  color: #000;
}


.addon-description {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.addon-description h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.addon-description ul {
  padding-left: 20px;
}

.addon-description p {
  line-height: 1.6;
  color: #ddd;
}


.banner-img, .screenshot-img {
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}


.sidebar-card {
  background: #1e1e1e;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.sidebar-card h4 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #41c541;
}

.sidebar-card p, .sidebar-card li {
  color: #ccc;
  font-size: 0.9rem;
}

.sidebar-card ul {
  padding-left: 20px;
  margin: 0;
}

.addon-card-header {
  display: flex;
  align-items: center;
  background: #1f1f1f;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  gap: 20px;
  margin-bottom: 24px;
}

.addon-card-header .addon-header-image {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #333;
}

.addon-card-header .addon-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-card-header .addon-header-content h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
}

.addon-card-header .addon-header-content p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.addon-card-header .download-btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
  width: fit-content;
}

.addon-card-header .download-btn:hover {
  background: #45a049;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  gap: 16px;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}


.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

.addon-versions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.addon-versions-list li {
  margin-bottom: 12px;
}


.version-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}


.version-download-btn {
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.version-download-btn:hover {
  background-color: #45a049;
}
.upload-btn {
  background: #4CAF50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}

.upload-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}
