/* Font Face Declarations */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('../../assets/fonts/inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    font-display: swap;
    src: url('../../assets/fonts/bebas-neue.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body { 
  font-family: 'Inter', sans-serif; 
  padding: 20px; 
  background-color: #1B1C1E; 
  color: #FFFFFF; 
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(63, 208, 201, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(155, 93, 229, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 80%, rgba(255, 211, 78, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

textarea { 
  width: 100%; 
  max-width: 600px; 
  background: #252629; 
  color: #FFFFFF; 
  border: 1px solid rgba(63, 208, 201, 0.3); 
  border-radius: 8px;
  padding: 15px; 
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #3FD0C9;
  box-shadow: 0 0 0 2px rgba(63, 208, 201, 0.2);
}

img { 
  max-height: 150px; 
  margin: 5px; 
  cursor: pointer; 
  border: 2px solid transparent; 
  border-radius: 8px;
  transition: all 0.3s ease;
}

#hand {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 10px;

}

img.selected { 
  border-color: #3FD0C9; 
  box-shadow: 0 0 15px rgba(63, 208, 201, 0.5);
}

button {
  margin: 5px 5px 15px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #3FD0C9, #9B5DE5);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(63, 208, 201, 0.3);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #9B5DE5, #3FD0C9);
  transition: left 0.3s;
  z-index: -1;
}

button:hover::before {
  left: 0;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 208, 201, 0.4);
}

button:disabled {
  background: #444;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:disabled::before {
  display: none;
}
#newHandBtn, #mulliganBtn { display: none; }

#deckList { 
  max-height: 200px; 
  overflow-y: auto; 
  background: #252629; 
  padding: 15px; 
  border-radius: 8px; 
  border: 1px solid rgba(63, 208, 201, 0.3); 
}

h1, h2, h3 { 
  color: #FFD34E; 
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(255, 211, 78, 0.3);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.mulligan-history-entry {
  background: linear-gradient(145deg, #252629, #1f2022);
  border-radius: 12px;
  border: 1px solid rgba(63, 208, 201, 0.2);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mulligan-history-entry:hover {
  border-color: rgba(63, 208, 201, 0.4);
  transform: translateY(-2px);
}

.mulligan-history-entry b {
  color: #FFD34E;
}
.mulligan-history-entry .card-img {
  height: 48px;
  margin: 2px 4px 2px 0;
  border-radius: 6px;
  border: 2px solid transparent;
  vertical-align: middle;
  transition: border 0.2s, opacity 0.2s;
}

.mulligan-history-entry .card-img.exchanged {
  opacity: 0.35;
  border: 2px solid #3FD0C9;
  filter: grayscale(0.7);
  position: relative;
}

.mulligan-history-entry .card-img.exchanged::after {
  content: "✗";
  color: #3FD0C9;
  font-size: 1.5em;
  position: absolute;
  left: 12px;
  top: 0;
  pointer-events: none;
}

#deckImagesBox {
  position: absolute;
  top: 200px;
  right: 32px;
  max-width: 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
}

#deckImagesBox .deck-card-img {
  height: 80px;
  margin: 2px;
  border-radius: 8px;
  border: 1.5px solid rgba(63, 208, 201, 0.3);
  background: #252629;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

#deckImagesBox .deck-card-img:hover {
  border-color: #3FD0C9;
  transform: scale(1.05);
}

/* Hover-Vergrößerung für Karten */
.card-hover-preview {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid #3FD0C9;
}

.card-hover-preview.show {
  opacity: 1;
}
#deckImagesBox .deck-card-badge {
  position: absolute;
  top: 3px;
  right: 7px;
  background: rgba(0,0,0,0.8);
  color: #FFD34E;
  font-weight: bold;
  font-size: 1.05em;
  padding: 2px 6px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  min-width: 18px;
  text-align: center;
  border: 1px solid rgba(255, 211, 78, 0.3);
}

#newHandBtn {
  background: linear-gradient(135deg, #2196f3, #1769aa) !important;
  color: #FFFFFF !important;
  margin: 20px 0 10px 0 !important;
  padding: 15px 25px !important;
  font-size: 1.1rem !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 300px !important;
  text-align: center !important;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4) !important;
}

#newHandBtn:hover {
  background: linear-gradient(135deg, #1769aa, #0d47a1) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5) !important;
}

.control-section {
  margin: 32px 0 24px 0;
  padding: 20px;
  background: linear-gradient(145deg, #252629, #1f2022);
  border-radius: 12px;
  border: 2px solid rgba(63, 208, 201, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 700px;
}

.control-section:hover {
  border-color: rgba(63, 208, 201, 0.5);
}

.section-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #FFD34E;
  margin-bottom: 15px;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
}

select {
  background: #252629;
  color: #FFFFFF;
  border: 1.5px solid rgba(63, 208, 201, 0.5);
  border-radius: 8px;
  font-size: 1.1em;
  padding: 8px 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #3FD0C9;
  box-shadow: 0 0 0 2px rgba(63, 208, 201, 0.2);
}

label {
  color: #FFD34E;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 20px;
}

/* Hamburger Menu */
.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.hamburger-btn {
  background: linear-gradient(145deg, #252629, #1f2022);
  border: 2px solid rgba(63, 208, 201, 0.3);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover {
  border-color: #3FD0C9;
  box-shadow: 0 6px 20px rgba(63, 208, 201, 0.3);
}

.hamburger-btn span {
  width: 24px;
  height: 3px;
  background: #3FD0C9;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 999;
}

.menu-overlay.show {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.menu-content {
  background: linear-gradient(145deg, #252629, #1f2022);
  border: 2px solid rgba(63, 208, 201, 0.3);
  border-radius: 12px;
  margin: 20px;
  padding: 50px 30px 30px 30px;
  min-width: 280px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #D0D0D0;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #3FD0C9;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  color: #D0D0D0;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item:hover:not(.disabled) {
  background: rgba(63, 208, 201, 0.1);
  color: #3FD0C9;
  transform: translateX(5px);
}

.menu-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.menu-separator {
  height: 1px;
  background: rgba(63, 208, 201, 0.2);
  margin: 8px 0;
}

.menu-section-title {
  color: #FFD34E;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin: 8px 16px 4px 16px;
}

.coming-soon-badge {
  background: rgba(255, 211, 78, 0.2);
  color: #FFD34E;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Support Me Area */
.support-area {
  position: fixed;
  top: 20px;
  left: 78px;
  z-index: 500;
}

.support-btn {
  background: linear-gradient(145deg, #252629, #1f2022);
  border: 2px solid rgba(63, 208, 201, 0.3);
  border-radius: 8px;
  width: 95px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #3FD0C9;
  font-weight: 600;
  font-size: 0.85rem;
}

.support-btn:hover {
  border-color: #3FD0C9;
  box-shadow: 0 6px 20px rgba(63, 208, 201, 0.3);
  transform: translateY(-2px);
}

.support-icon {
  font-size: 16px;
}

.support-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1001;
}

.support-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-content {
  background: linear-gradient(145deg, #252629, #1f2022);
  border: 2px solid rgba(155, 93, 229, 0.3);
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: supportSlideIn 0.3s ease;
  position: relative;
}

@keyframes supportSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.support-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #D0D0D0;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.support-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #9B5DE5;
}

.support-header {
  text-align: center;
  margin-bottom: 25px;
}

.support-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.support-header h3 {
  color: #FFD34E;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.support-header p {
  color: #D0D0D0;
  font-size: 0.95rem;
  margin: 0;
}

.support-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.support-option.kofi {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 149, 0, 0.05));
  color: #ff9500;
}

.support-option.kofi:hover {
  border-color: #ff9500;
  background: rgba(255, 149, 0, 0.1);
  transform: translateX(5px);
}

.support-option.patreon {
  background: linear-gradient(135deg, rgba(255, 66, 77, 0.1), rgba(255, 66, 77, 0.05));
  color: #ff424d;
}

.support-option.patreon:hover {
  border-color: #ff424d;
  background: rgba(255, 66, 77, 0.1);
  transform: translateX(5px);
}

.support-option.paypal {
  background: linear-gradient(135deg, rgba(0, 112, 240, 0.1), rgba(0, 112, 240, 0.05));
  color: #0070f0;
}

.support-option.paypal:hover {
  border-color: #0070f0;
  background: rgba(0, 112, 240, 0.1);
  transform: translateX(5px);
}

.support-option-icon {
  font-size: 1.5rem;
}

.support-option-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.support-option-text small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.support-separator {
  height: 1px;
  background: rgba(155, 93, 229, 0.2);
  margin: 8px 0;
}

.support-other {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(63, 208, 201, 0.1), rgba(63, 208, 201, 0.05));
  color: #3FD0C9;
}

.logo-img {
  height: 96px;
}

.main-title {
  margin: 0;
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  color: #3FD0C9;
  text-shadow: 0 4px 20px rgba(63, 208, 201, 0.3);
  letter-spacing: 2px;
}

#statisticsArea {
  position: relative;
  width: min(100%, 960px);
  margin: 35px auto 0;
  z-index: 5;
}

#statisticsArea .stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

#statisticsArea .stat-box {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 2px solid;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#statisticsArea .stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

#statisticsArea .stat-number {
  font-size: 2.6rem;
  font-weight: bold;
  font-family: "Bebas Neue", cursive;
  margin-bottom: 6px;
}

#statisticsArea .stat-label {
  color: #D0D0D0;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  #statisticsArea {
    margin-top: 28px;
  }
}

@media (max-width: 768px) {
  #statisticsArea .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 600px) {
  #statisticsArea .stats-container {
    grid-template-columns: 1fr;
  }
}

.deck-overview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  width: min(100%, 960px);
  margin: 20px auto 24px;
}

.deck-images-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.deck-stats-container {
  flex: 0 0 300px;
  max-width: 300px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.deck-stats-panel {
  background: linear-gradient(145deg, rgba(63, 208, 201, 0.12), rgba(155, 93, 229, 0.12));
  border: 2px solid rgba(63, 208, 201, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.deck-stats-title {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1px;
  text-align: center;
  color: #FFD34E;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.deck-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}

.deck-stats-grid div {
  background: rgba(27, 28, 30, 0.65);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 208, 201, 0.2);
}

.deck-stats-grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(208, 208, 208, 0.75);
}

.deck-stats-grid dd {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-family: 'Bebas Neue', cursive;
  color: #FFFFFF;
}

@media (max-width: 1024px) {
  .deck-overview-bar {
    justify-content: center;
  }
  .deck-images-box {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .deck-overview-bar {
    gap: 12px;
  }
  .deck-stats-container {
    flex: 1 1 100%;
    max-width: 340px;
    justify-content: center;
  }
  .deck-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 520px) {
  .deck-stats-grid {
    grid-template-columns: 1fr;
  }
}

