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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  min-height: 100vh;
  cursor: url('images/apex-legends-kunai-cursor.png'), auto;  
}

.header {
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/Banniere_dApexWiki-kxhwX2UoJIP5ZYUKDe9v6BmJGAIy9E.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #b91c1c;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .logo {
  display: none;
}

.header .tagline {
  display: none;
}

.header .subtitle {
  display: none;
}

.logo {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.logo-apex {
  color: #ffffff;
}

.logo-wiki {
  color: #1a1a1a;
}

.tagline {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.breadcrumb {
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #b91c1c;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #666;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #b91c1c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card, 
.breadcrumb a,
.back-button,
a {
  cursor: url('images/apex-legends-wraith-cursor.png') 16 16, pointer;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-grid-small {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(185, 28, 28, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(185, 28, 28, 0.4);
  border-color: #b91c1c;
  cursor: url('images/apex-legends-wraith-cursor.png') 16 16, pointer;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #b91c1c;
  text-align: center;
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cccccc;
  text-align: justify;
}

.category-description {
  padding-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
  color: #b91c1c;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.detail-header {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

.detail-title {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(185, 28, 28, 0.3);
  border-radius: 10px;
  padding: 2rem;
}

.detail-image {
  width: 100%; 
  height: 400px; 
  border-radius: 10px;
  border: 3px solid #b91c1c;
}

.detail-image img {
  width: 100%;  
  height: 100%; 
  object-fit: cover;
  border-radius: 8px;
}

.ash-image-position img {
    object-position: right;
}

.revenant-image-position img {
    object-position: right;
}

.ballistic-image-position img {
    object-position: right;
}


.lifeline-image-position img {
    object-position: left;
}

.bangalore-image-position img {
    object-position: left;
}

.mirage-image-position img {
    object-position: left;
}

.rampart-image-position img {
    object-position: left;
}


.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section h3 {
  color: #b91c1c;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.detail-section p {
  line-height: 1.8;
  color: #cccccc;
  text-align: justify;
}

.or {
  text-transform: uppercase;
}

.back-button {
  display: inline-block;
  background: #b91c1c;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 2rem;
  transition: background 0.3s;
  font-weight: bold;
  text-transform: uppercase;
  position: sticky;
  top: 70px; 
  z-index: 1050; 
  left: 5px;
  width: max-content; 
}

.back-button:hover {
  background: #7f1d1d;
}

.abilities-section {
  grid-column: 1 / -1; 
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(185, 28, 28, 0.3);
}

.abilities-section h3 {
  color: #b91c1c;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-align: center;
}

.ability-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap; 
  padding: 1rem 0;
}

.ability-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1.5rem;
  width: 300px;
  min-height: 180px; 
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.3s;
}

.ability-card:hover {
  transform: translateY(-3px);
  border-color: #b91c1c;
}

.ability-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ability-header .icon {
  font-size: 1.8rem;
  margin-right: 0.75rem;
  color: #b91c1c; 
}

.ability-header .title {
  font-size: 1.25rem;
  font-weight: bold;
}

.ability-type {
  font-size: 0.8rem;
  color: #ccc;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.ability-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ffffff;
}

.footer {
    background: #0d0d0d;
    color: #cccccc;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #b91c1c;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer .or {
    font-style: italic;
    color: #7f1d1d;
    font-size: 0.8rem;
    text-transform: none; 
}

.footer-nav {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: #b91c1c;
    text-decoration: none;
    font-weight: bold;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffffff;
}

.legal-disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #333;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #999999;
}


@media (max-width: 1024px) {
  .ability-card {
    width: 100%; 
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    height: 120px;
  }

  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

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

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

  .page-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .header {
    height: 160px;
  }
}
