/* ========================================================
   DAYZELCORP V2 - CLEAN TECH ESPORTS DESIGN SYSTEM
   components.css - Buttons, Cards, Badges, Tables
   ======================================================== */

/* --- Buttons --- */
.dz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--dz-space-lg);
  min-height: 44px;
  font-family: var(--dz-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--dz-radius-sm); /* Sharper radius */
  cursor: pointer;
  transition: background-color var(--dz-transition-fast), border-color var(--dz-transition-fast), color var(--dz-transition-fast), transform var(--dz-transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  /* eSports Tech Edge */
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.dz-btn-primary {
  background-color: var(--dz-brand-primary);
  color: var(--dz-text-on-brand);
}

.dz-btn-primary:hover {
  background-color: #E6C200;
}

.dz-btn-secondary {
  background-color: var(--dz-brand-secondary);
  color: var(--dz-text-on-brand);
}

.dz-btn-secondary:hover {
  background-color: #00BBE6;
}

.dz-btn-outline {
  background-color: transparent;
  border-color: var(--dz-border);
  color: var(--dz-text-primary);
}

.dz-btn-outline:hover {
  border-color: var(--dz-brand-primary);
  color: var(--dz-brand-primary);
  background-color: rgba(255, 214, 0, 0.05);
}

.dz-btn-outline.dz-card:hover {
  border-color: var(--dz-brand-primary);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.1);
}

.dz-card-hw-accent {
  /* Hardware accent for V2 cards */
  position: absolute; 
  background-color: var(--dz-brand-secondary); 
  z-index: 2;
  transition: background-color 0.3s ease;
}

.dz-card-interactive:hover .dz-card-hw-accent {
  background-color: var(--dz-brand-primary);
}

/* --- Cards --- */
.dz-card {
  background-color: var(--dz-card);
  border: 1px solid var(--dz-border);
  border-top: 2px solid transparent; /* Placeholder for eSports accent */
  border-radius: var(--dz-radius-lg);
  padding: var(--dz-space-lg);
  transition: border-color var(--dz-transition-normal), background-color var(--dz-transition-normal);
  /* Pure flat design, NO box-shadow or scale on hover to save GPU */
}

.dz-card:hover {
  border-color: var(--dz-border-hover);
  background-color: var(--dz-card-hover);
}

.dz-card-interactive {
  cursor: pointer;
}

.dz-card-interactive:hover {
  border-color: var(--dz-border-hover);
  border-top-color: var(--dz-brand-primary); /* Hardware accent */
}
/* --- Badges --- */
.dz-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--dz-space-xs) var(--dz-space-sm);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--dz-radius-sm);
  line-height: 1;
}

.dz-badge-brand {
  background-color: var(--dz-brand-secondary);
  color: var(--dz-text-on-brand);
}

.dz-badge-dark {
  background-color: var(--dz-bg);
  border: 1px solid var(--dz-border);
  color: var(--dz-text-primary);
}

.dz-badge-success {
  background-color: #10B981;
  color: #fff;
}

.dz-badge-danger {
  background-color: #EF4444;
  color: #fff;
}

/* --- Tables --- */
.dz-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--dz-radius-lg);
  border: 1px solid var(--dz-border);
  background-color: var(--dz-card);
  /* No backdrop-filter, no heavy shadows */
}

.dz-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dz-table th {
  background-color: var(--dz-bg);
  padding: var(--dz-space-md) var(--dz-space-lg);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dz-text-secondary);
  border-bottom: 1px solid var(--dz-border-hover);
}

.dz-table td {
  padding: var(--dz-space-md) var(--dz-space-lg);
  border-bottom: 1px solid var(--dz-border);
  color: var(--dz-text-primary);
  font-size: 14px;
}

.dz-table tr:last-child td {
  border-bottom: none;
}

.dz-table tr:hover td {
  background-color: var(--dz-card-hover);
}

/* ==========================================================================
   TABS & NAVIGATION (STEAM STYLE)
   ========================================================================== */
.dz-tabs {
  display: flex;
  gap: var(--dz-space-lg);
  border-bottom: 1px solid var(--dz-border);
  margin-bottom: var(--dz-space-xl);
  overflow-x: auto;
  scrollbar-width: none;
}

.dz-tabs::-webkit-scrollbar {
  display: none;
}

.dz-tab-item {
  color: #A0AEC0;
  text-decoration: none;
  font-family: var(--dz-font-body);
  font-size: 14px;
  font-weight: 600;
  padding: var(--dz-space-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.dz-tab-item:hover {
  color: #FFF;
}

.dz-tab-item.active {
  color: var(--dz-brand-primary);
  font-weight: 800;
}

.dz-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--dz-brand-primary);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.dz-pagination-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--dz-space-2xl);
}

.dz-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--dz-space-sm);
  margin-top: var(--dz-space-2xl);
}

.dz-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background-color: var(--dz-card);
  border: 1px solid var(--dz-border);
  color: #FFF;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--dz-font-body);
  font-weight: 600;
  transition: all 0.2s;
}

.dz-page-link:hover {
  border-color: var(--dz-brand-secondary);
  color: var(--dz-brand-secondary);
}

.dz-page-link.active {
  background-color: var(--dz-brand-primary);
  border-color: var(--dz-brand-primary);
  color: #000;
}

.dz-page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   GRIDS
   ========================================================================== */
.dz-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--dz-space-lg);
}
.dz-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--dz-space-lg);
}

/* ========================================================
   NEWS CENTER - COMPONENTES V2
   ======================================================== */
.dz-news-page-header {
  padding: var(--dz-space-2xl) 0 var(--dz-space-xl);
}

.dz-news-page-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--dz-brand-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dz-news-page-title {
  margin: 0 0 var(--dz-space-sm);
  font-size: 2.5rem;
  text-transform: uppercase;
}

.dz-news-page-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: #A0AEC0;
}

.dz-news-featured-section,
.dz-news-list-section {
  margin-bottom: var(--dz-space-2xl);
}

.dz-news-featured-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background-color: var(--dz-card);
  border: 1px solid var(--dz-border);
  border-radius: 4px;
}

.dz-news-featured-layout {
  display: flex;
  flex-wrap: wrap;
}

.dz-news-featured-media {
  position: relative;
  flex: 1 1 50%;
  min-height: 300px;
  background-color: #0A0D14;
}

.dz-news-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dz-news-featured-content {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  justify-content: center;
  padding: var(--dz-space-2xl);
}

.dz-news-game-badge {
  align-self: flex-start;
  margin-bottom: var(--dz-space-md);
  background-color: var(--dz-brand-primary);
  color: #000;
  font-weight: 800;
  border-radius: 4px;
}

.dz-news-meta-line,
.dz-news-card-v2__meta {
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dz-news-meta-line {
  margin-bottom: var(--dz-space-sm);
}

.dz-news-meta-line__icon,
.dz-news-card-v2__meta-icon {
  margin-right: 4px;
  color: var(--dz-brand-secondary);
}

.dz-news-featured-title {
  margin-bottom: var(--dz-space-md);
  font-family: var(--dz-font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.dz-news-featured-title__link,
.dz-news-card-v2__link {
  color: #FFF;
  text-decoration: none;
}

.dz-news-featured-excerpt {
  margin-bottom: var(--dz-space-xl);
  color: #A0AEC0;
  font-size: 16px;
  line-height: 1.6;
}

.dz-news-featured-cta {
  padding-right: 32px;
  padding-left: 32px;
}

.dz-news-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background-color: var(--dz-card);
  border: 1px solid var(--dz-border);
  border-radius: 4px;
}

.dz-news-card-v2__accent {
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background-color: var(--dz-border);
}

.dz-news-card-v2:hover .dz-card-hw-accent {
  background-color: var(--dz-brand-primary);
}

.dz-news-card-v2__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--dz-bg);
}

.dz-news-card-v2__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dz-news-editorial-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--dz-bg), var(--dz-bg) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}

.dz-news-editorial-fallback--hero {
  position: absolute;
  inset: 0;
}

.dz-news-editorial-fallback__icon {
  color: var(--dz-border);
  font-size: 3rem;
  margin-bottom: 16px;
}

.dz-news-editorial-fallback__icon--card {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dz-news-editorial-fallback__label {
  color: var(--dz-text-muted);
  font-family: var(--dz-font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.dz-news-editorial-fallback__label--hero {
  font-size: 1.2rem;
}

.dz-news-card-v2__badge-wrap {
  position: absolute;
  top: var(--dz-space-sm);
  left: var(--dz-space-sm);
  z-index: 2;
}

.dz-news-card-v2__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--dz-card) 0%, transparent 60%);
}

.dz-news-card-v2__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--dz-space-lg);
}

.dz-news-card-v2__meta {
  margin-bottom: var(--dz-space-xs);
  font-size: 11px;
}

.dz-news-card-v2__title {
  margin-bottom: var(--dz-space-sm);
  font-family: var(--dz-font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.dz-news-card-v2__excerpt {
  display: -webkit-box;
  margin-top: auto;
  overflow: hidden;
  color: #A0AEC0;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.dz-news-empty-card {
  padding: var(--dz-space-2xl);
}

.dz-news-empty-card__icon {
  margin-bottom: var(--dz-space-md);
  color: var(--dz-border);
  font-size: 3rem;
}

@media (max-width: 768px) {
  .dz-news-featured-media {
    flex: 1 1 100%;
    min-height: 200px;
  }

  .dz-news-featured-content {
    flex: 1 1 100%;
    padding: var(--dz-space-lg);
  }

  .dz-news-featured-title {
    font-size: 1.5rem;
  }
}

/* ========================================================
   GAMES DIRECTORY - COMPONENTES ESPECIALIZADOS
   ======================================================== */
.dz-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .dz-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dz-game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.dz-game-card {
  --game-accent: var(--dz-brand-primary, #FFD600);
  position: relative;
  background: var(--dz-card, #151B24);
  border: 1px solid var(--dz-border, #263241);
  border-radius: 4px; /* V2 rule */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.dz-game-card[data-game*="lol"],
.dz-game-card[data-game*="league"] { --game-accent: #C89B3C; }
.dz-game-card[data-game*="valorant"] { --game-accent: #FF4655; }
.dz-game-card[data-game*="cs2"],
.dz-game-card[data-game*="cs-go"],
.dz-game-card[data-game*="counter"] { --game-accent: #F59E0B; }
.dz-game-card[data-game*="dota"] { --game-accent: #E23636; }
.dz-game-card[data-game*="mlbb"],
.dz-game-card[data-game*="mobile-legends"] { --game-accent: #FFD600; }
.dz-game-card[data-game*="free-fire"] { --game-accent: #FF8800; }
.dz-game-card[data-game*="fortnite"] { --game-accent: #9333EA; }
.dz-game-card[data-game*="pubg"] { --game-accent: #F97316; }
.dz-game-card[data-game*="roblox"] { --game-accent: #00D9FF; }
.dz-game-card[data-game*="ea-sports"],
.dz-game-card[data-game*="fc"] { --game-accent: #22C55E; }

.dz-game-card:hover {
  border-color: var(--game-accent);
}

.dz-game-card__media-link {
  display: block;
  text-decoration: none;
  outline: none;
}

.dz-game-card__media {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--dz-bg, #0D1117);
}

.dz-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.3s ease;
}

.dz-game-card:hover .dz-game-card__media img {
  transform: scale(1.03);
}

.dz-game-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dz-card) 0%, transparent 100%);
  pointer-events: none;
}

.dz-game-card__logo-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* Removed backdrop-filter per rules */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  transition: border-color 0.25s ease;
  z-index: 3;
}

.dz-game-card:hover .dz-game-card__logo-badge {
  border-color: var(--game-accent);
}

.dz-game-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.dz-game-card__logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--dz-bg, #0D1117);
  border: 1px solid var(--game-accent, #00D9FF);
  color: var(--game-accent, #00D9FF);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
}

.dz-game-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
}

.dz-game-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dz-game-card__title a {
  color: var(--dz-text-primary, #FFFFFF) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.dz-game-card:hover .dz-game-card__title a {
  color: var(--game-accent) !important;
}

.dz-game-card__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--dz-text-muted, #94A3B8);
  margin: 4px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dz-game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94A3B8;
}

.dz-game-status--active { color: #22C55E; }
.dz-game-status--upcoming { color: #F59E0B; }
.dz-game-status--beta { color: #00D9FF; }

.dz-game-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.dz-game-card__meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.dz-game-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #CBD5E1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dz-game-card:hover .dz-game-meta-tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.dz-game-btn-enter {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.dz-game-card:hover .dz-game-btn-enter {
  background-color: var(--game-accent) !important;
  border-color: var(--game-accent) !important;
  color: #080B10 !important;
}

.dz-game-empty {
  grid-column: 1 / -1;
  background: var(--dz-card, #151B24);
  border: 1px solid var(--dz-border, #263241);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  color: var(--dz-text-muted, #94A3B8);
}
