/* 
 * Sparta Praha Style System
 * Based on AC Sparta Praha design patterns
 * Converted from rec directory CSS files
 */

/* ========================================
   1. HEADER / NAVBAR STYLES
   ======================================== */

.sparta-navbar-container {
  position: relative;
  width: 100%;
}

.sparta-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--colorBgPrimary, #0e0e0e);
  border-bottom: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
}

.sparta-navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0, 0, 0, 1);
}

.sparta-navbar-toggle:hover {
  transform: scale(1.1);
}

.sparta-burger-icon {
  position: relative;
  width: 40px;
  height: 40px;
  user-select: none;
}

.sparta-burger-line {
  background: currentColor;
  height: 2px;
  width: 18px;
  position: absolute;
  left: 11px;
  transition: 0.2s cubic-bezier(0, 0, 0, 1);
}

.sparta-burger-line:nth-child(1) {
  top: 13px;
}

.sparta-burger-line:nth-child(2) {
  top: 19px;
  opacity: 1;
}

.sparta-burger-line:nth-child(3) {
  top: 25px;
}

.sparta-navbar-brand {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.sparta-navbar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sparta-navbar-links {
  display: none;
  gap: 1rem;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .sparta-navbar-links {
    display: flex;
  }
}

.sparta-navbar-separator {
  width: 1px;
  height: 24px;
  background: var(--colorBorder, rgba(255, 255, 255, 0.1));
}

/* ========================================
   2. HERO / FEATURED CAROUSEL STYLES
   ======================================== */

.sparta-hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 42.375rem;
  overflow: hidden;
  margin-top: -4.5rem;
}

@media screen and (min-width: 1024px) {
  .sparta-hero-container {
    height: 50rem;
    flex-direction: row;
    align-items: flex-end;
  }
}

@media screen and (min-width: 1280px) {
  .sparta-hero-container {
    height: 53rem;
    margin-top: -5rem;
    max-width: 2520px;
    width: 100%;
    align-self: center;
  }
}

.sparta-hero-container::after {
  content: '';
  position: absolute;
  pointer-events: none;
  height: 300px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, #0e0e0e, hsla(0, 0%, 5%, 0));
  z-index: 1;
}

.sparta-hero-background {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  z-index: 0;
}

.sparta-hero-background img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.sparta-hero-article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
  padding: 0 20px;
  animation: sparta-fade-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media screen and (min-width: 1024px) {
  .sparta-hero-article {
    margin-bottom: 11.875rem;
    padding: 0 0 0 3.75rem;
    width: 42.4375rem;
    max-width: calc(100% - 27.75rem);
    gap: 16px;
  }
}

@media screen and (min-width: 1280px) {
  .sparta-hero-article {
    margin-bottom: 15rem;
  }
}

@keyframes sparta-fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sparta-hero-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.sparta-hero-category-badge {
  padding: 4px 8px;
  background: var(--colorBgSemiTransparent8, hsla(0, 0%, 100%, 0.08));
  backdrop-filter: blur(60px);
  border-radius: 4px;
}

.sparta-hero-separator {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.sparta-hero-title {
  font-size: 2.25rem;
  line-height: 2.375rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}

@media screen and (min-width: 1280px) {
  .sparta-hero-title {
    font-size: 4rem;
    line-height: 4.25rem;
  }
}

.sparta-hero-description {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

@media screen and (min-width: 1280px) {
  .sparta-hero-description {
    font-size: 1.5rem;
  }
}

.sparta-hero-button {
  margin-top: 24px;
}

@media screen and (min-width: 1280px) {
  .sparta-hero-button {
    margin-top: 16px;
  }
}

.sparta-hero-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem;
}

/* ========================================
   3. HORIZONTAL SLIDER STYLES
   ======================================== */

.sparta-slider-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media screen and (min-width: 1024px) {
  .sparta-slider-container {
    gap: 3rem;
  }
}

.sparta-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sparta-slider-title {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  margin: 0;
}

@media screen and (min-width: 1280px) {
  .sparta-slider-title {
    font-size: 2rem;
  }
}

.sparta-slider-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sparta-slider-title a:hover {
  color: var(--colorAccent, #f03232);
}

.sparta-slider-title i {
  width: 2rem;
  height: 2rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sparta-slider-title a:hover i {
  transform: translateX(4px);
}

.sparta-slider-controls {
  display: flex;
  gap: 8px;
}

.sparta-slider-button {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--colorBgSecondary, #1e1e1e);
  border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.sparta-slider-button:hover:not(:disabled) {
  background: var(--colorBgTertiary, #2e2e2e);
  border-color: var(--colorAccent, #f03232);
}

.sparta-slider-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sparta-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.sparta-slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1);
  transform: translate3d(0px, 0px, 0px);
}

.sparta-slider-slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
}

@media screen and (min-width: 768px) {
  .sparta-slider-slide {
    width: calc(50% - 8px);
  }
}

@media screen and (min-width: 1024px) {
  .sparta-slider-slide {
    width: calc(33.333% - 11px);
  }
}

/* Article Card */
.sparta-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--colorBgSecondary, #1e1e1e);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.sparta-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sparta-article-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.sparta-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sparta-article-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.sparta-article-badge {
  padding: 6px 12px;
  background: var(--colorAccent, #f03232);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 4px;
}

.sparta-article-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sparta-article-categories {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
  text-transform: uppercase;
}

.sparta-article-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--colorTextPrimary, #ffffff);
}

.sparta-article-date {
  font-size: 0.875rem;
  color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
  margin-top: auto;
}

/* ========================================
   4. TEAM TABS & STATS STYLES
   ======================================== */

.sparta-team-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sparta-tabs-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sparta-tablist-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sparta-tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--colorAccent, #f03232);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1), width 0.3s;
  z-index: 1;
}

.sparta-tablist {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
  width: 100%;
}

.sparta-tab {
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.sparta-tab:hover {
  color: var(--colorTextPrimary, #ffffff);
}

.sparta-tab[aria-selected='true'] {
  color: var(--colorTextPrimary, #ffffff);
}

.sparta-tab-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.625rem 1.25rem;
  background: var(--colorBgSecondary, #1e1e1e);
  backdrop-filter: blur(60px);
}

@media screen and (min-width: 1024px) {
  .sparta-tab-content {
    flex-direction: row;
    gap: 12px;
    padding: 2.5rem;
  }
}

.sparta-team-image {
  width: 100%;
  max-width: 544px;
  height: auto;
  border-radius: 8px;
}

@media screen and (min-width: 1024px) {
  .sparta-team-image {
    margin: -2.5rem 0 0 -2.5rem;
  }
}

.sparta-team-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
  margin-top: 1.5rem;
}

@media screen and (min-width: 1024px) {
  .sparta-team-actions {
    flex-direction: row;
    justify-content: center;
    padding-right: 2.5rem;
  }
}

.sparta-team-actions button,
.sparta-team-actions a {
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .sparta-team-actions button,
  .sparta-team-actions a {
    width: auto;
  }
}

/* ========================================
   5. PRODUCT SLIDER STYLES
   ======================================== */

.sparta-product-card {
  display: flex;
  flex-direction: column;
  background: var(--colorBgSecondary, #1e1e1e);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.sparta-product-card:hover {
  transform: translateY(-4px);
}

.sparta-product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--colorBgTertiary, #2e2e2e);
}

.sparta-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sparta-product-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sparta-product-name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--colorTextPrimary, #ffffff);
}

.sparta-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sparta-product-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--colorAccent, #f03232);
}

.sparta-product-buy-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
  color: var(--colorTextPrimary, #ffffff);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sparta-product-buy-button:hover {
  background: var(--colorAccent, #f03232);
  border-color: var(--colorAccent, #f03232);
}

/* ========================================
   6. PARTNERS PYRAMID STYLES
   ======================================== */

.sparta-partners-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0;
  background: var(--colorBgSecondary, #1e1e1e);
}

.sparta-pyramid-tier {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sparta-pyramid-top {
  /* 1 partner - largest */
}

.sparta-pyramid-top .sparta-partner-logo {
  width: 192px;
  height: 128px;
}

.sparta-pyramid-mid {
  /* 4 partners - medium */
}

.sparta-pyramid-mid .sparta-partner-logo {
  width: 160px;
  height: 128px;
}

.sparta-pyramid-bottom {
  /* 8+ partners - smaller */
}

.sparta-pyramid-bottom .sparta-partner-logo {
  width: 140px;
  height: 100px;
}

.sparta-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.sparta-partner-logo:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.sparta-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(200%);
  transition: filter 0.2s;
}

.sparta-partner-logo:hover img {
  filter: grayscale(0%) brightness(100%);
}

/* ========================================
   7. FOOTER EXTENDED STYLES
   ======================================== */

.sparta-footer {
  background: var(--colorBgPrimary, #0e0e0e);
  border-top: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
}

.sparta-footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1.25rem;
}

@media screen and (min-width: 768px) {
  .sparta-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .sparta-footer-content {
    grid-template-columns: repeat(4, 1fr);
    padding: 4rem 3.75rem;
  }
}

.sparta-footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sparta-footer-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--colorTextPrimary, #ffffff);
  margin: 0 0 0.5rem 0;
}

.sparta-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sparta-footer-link {
  color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
}

.sparta-footer-link:hover {
  color: var(--colorTextPrimary, #ffffff);
}

.sparta-footer-bottom {
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
  color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
  font-size: 0.875rem;
}

/* ========================================
   8. UTILITY CLASSES
   ======================================== */

.sparta-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media screen and (min-width: 1024px) {
  .sparta-container {
    padding: 0 3.75rem;
  }
}

.sparta-section {
  padding: 2.5rem 0;
}

@media screen and (min-width: 1024px) {
  .sparta-section {
    padding: 4rem 0;
  }
}

.sparta-button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--colorAccent, #f03232);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sparta-button-primary:hover {
  background: var(--colorAccentHover, #d02828);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 50, 50, 0.4);
}

.sparta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--colorTextPrimary, #ffffff);
  border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.sparta-button-secondary:hover {
  background: var(--colorBgSecondary, #1e1e1e);
  border-color: var(--colorAccent, #f03232);
}

.sparta-button-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  color: var(--colorTextPrimary, #ffffff);
  border: none;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.sparta-button-tertiary:hover {
  color: var(--colorAccent, #f03232);
}
