/* PUBLICATIONS */
.entry-card {
	background-color: var(--ak-surface) !important;
}

.o-posts-grid-post-title a {
	color: var(--ak-accent) !important;
}

/* Conteneur de chaque carte - sauf page d'accueil */
body:not(.home) .o-posts-grid-post-blog {
  flex: 1 1 calc(33.33% - 24px); /* ou 50% pour 2 colonnes */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Carte intérieure */
body:not(.home) .o-posts-grid-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #2E2E2E;
  border: 1px solid var(--ak-border-accent);
}

/* Image */
body:not(.home) .o-posts-grid-post-image {
  flex-shrink: 0;
}

body:not(.home) .o-posts-grid-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenu de la carte */
body:not(.home) .o-posts-grid-post-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  padding: 16px;
}

/* Titre + description */
body:not(.home) .o-posts-grid-post-title,
body:not(.home) .o-posts-grid-post-description {
  margin-bottom: 10px;
}

/* Description : limite à 3 lignes */
body:not(.home) .o-posts-grid-post-description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body:not(.home) .o-posts-grid-post-blog {
    flex: 1 1 100%;
  }
}

/* GUIDES DE CLASSES */
/* Conteneur principal des équipements */
.equipement-list {
  display: block;
  column-count: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Chaque carte d'équipement (li principal) */
.equipement-list > li {
  break-inside: avoid;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ak-border-accent);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Titre de l’emplacement (ex. : Tête) */
.equipement-list > li > strong {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--ak-accent);
  margin-bottom: 8px;
}

/* Liste interne des objets */
.equipement-list ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 0;
}

/* Liens vers Wowhead */
.equipement-list a {
  color: #E6E0D4;
  text-decoration: none;
}
.equipement-list a:hover {
  text-decoration: underline;
}

.stat-priority {
  background-color: #383838;
  color: var(--ak-accent);
  border: 1px solid var(--ak-border-accent);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  width: fit-content;
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .equipement-list {
    column-count: 1;
  }
}

/* CONNEXION */
.akalavolo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.akalavolo-modal-content {
  background-color: #1e1e1e;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  margin: 10% auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: fadeInUp 0.3s ease-out;
}

.akalavolo-modal-content h2 {
  color: var(--ak-accent);
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.akalavolo-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.akalavolo-modal-content input[type="text"],
.akalavolo-modal-content input[type="password"],
.akalavolo-modal-content input[type="email"], {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #eee;
  padding: 0.6em;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.akalavolo-modal-content input[type="submit"] {
  background-color: var(--ak-accent);
  color: #000;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.akalavolo-modal-content input[type="submit"]:hover {
  background-color: #e2c036;
}

.akalavolo-modal-content p a {
  color: var(--ak-accent);
  font-weight: bold;
}


.akalavolo-modal-content {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* MON COMPTE */
.akalavolo-account-card {
  background-color: #1e1e1e;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 3rem auto;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: 'Open Sans', sans-serif;
}

.akalavolo-account-card h2 {
  color: var(--ak-accent);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.akalavolo-account-card p {
  font-size: 1rem;
  margin: 0.8rem 0;
}

.akalavolo-account-card a {
  display: inline-block;
  background-color: var(--ak-accent);
  color: #000;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1.2rem;
  transition: background-color 0.2s ease;
}

.akalavolo-account-card a:hover {
  background-color: #e2c036;
}

.akalavolo-stats ul {
  list-style: none;
  padding: 0;
}

.akalavolo-stats li {
  margin: 5px 0;
}

/* TIER LISTS — PAGE DE NAVIGATION */
.tier-nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.tier-nav-cards--3col {
  grid-template-columns: repeat(3, 1fr);
}

.tier-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--ak-surface);
  border: 1px solid #4a4a5a;
  border-radius: 10px;
  text-decoration: none;
  color: #E6E0D4;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

.tier-nav-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background-color: var(--mode-color, var(--ak-accent));
  border-radius: 10px 0 0 10px;
}

.tier-nav-card:hover {
  border-color: var(--mode-color, var(--ak-border-accent));
  background-color: #41415a;
  transform: translateY(-2px);
  color: #E6E0D4;
  text-decoration: none;
}

.tier-nav-card[data-mode="2v2"]     { --mode-color: var(--color-mage); }
.tier-nav-card[data-mode="3v3"]     { --mode-color: var(--ak-accent); }
.tier-nav-card[data-mode="shuffle"] { --mode-color: var(--color-demon-hunter); }
.tier-nav-card[data-mode="rbg"]     { --mode-color: #e74c3c; }
.tier-nav-card[data-mode="blitz"]   { --mode-color: #e67e22; }

.tier-nav-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--mode-color, var(--ak-border-accent));
  opacity: 0.85;
  transition: opacity 0.2s;
}

.tier-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tier-nav-card:hover .tier-nav-icon { opacity: 1; }

.tier-nav-body { flex: 1; min-width: 0; }

.tier-nav-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ak-accent-hi);
  font-weight: 700;
  margin-bottom: 2px;
}

.tier-nav-body h2 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #E6E0D4 !important;
  margin: 0 0 0.2rem !important;
  border-bottom: none !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.tier-nav-body p {
  font-size: 0.8rem;
  color: #a0a0b8;
  margin: 0;
  line-height: 1.4;
}

.tier-nav-arrow {
  flex-shrink: 0;
  color: #5a5a6a;
  font-size: 0.8rem;
  transition: color 0.2s, transform 0.2s;
}

.tier-nav-card:hover .tier-nav-arrow {
  color: var(--mode-color, var(--ak-accent));
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .tier-nav-cards,
  .tier-nav-cards--3col {
    grid-template-columns: 1fr;
  }
}