:root {
  --mako-50: #f6f7f9;
  --mako-100: #edeef1;
  --mako-200: #d7dae0;
  --mako-300: #b3bac6;
  --mako-400: #8a94a6;
  --mako-500: #6b778c;
  --mako-600: #565f73;
  --mako-700: #464d5e;
  --mako-800: #3e4451;
  --mako-900: #363a44;
  --mako-950: #24262d;

  --bg-primary: var(--mako-950);
  --bg-secondary: var(--mako-900);
  --text-primary: var(--mako-50);
  --text-secondary: var(--mako-200);
  --accent: var(--mako-500);
  --accent-hover: var(--mako-600);
  --inactive: var(--mako-700);
}

/* === Shop Specific Styles === */
.shop-hero {
    text-align: center;
}

.shop-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 0.6rem 0;
    color: var(--accent);
    letter-spacing: 1px;
}

.shop-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* === Tab Navigation === */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--inactive);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* === Tab Sections === */
.tab-section {
    animation: tab-fadein 0.3s ease-in-out;
    margin: 0 2.5rem 2.5rem 2.5rem;
}

.tab-section.hidden {
    display: none;
}

.tab-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

/* === Filter Buttons === */
.shop-filter,
.ingame-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--inactive);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#game-select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--inactive);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* === Shop Grid === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* === Shop Items === */
.shop-item {
    background: var(--bg-primary);
    border-radius: 14px;
    box-shadow: 0 2px 12px #0002;
    border: 1px solid var(--inactive);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.shop-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 32px #0005;
    border-color: var(--accent);
}

.shop-item-image {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-item-content {
    padding: 1.5rem;
}

.shop-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.shop-item-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-item-tag {
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #27ae60;
}

.shop-item-price.free {
  color: var(--accent); /* entfernt #4c8bf5 */
}

.shop-item-btn {
    background: var(--accent);
    color: var(--mako-50);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.shop-item-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.shop-item-btn:disabled {
    background: var(--inactive);
    cursor: not-allowed;
    transform: none;
}

/* === In-Game Items Specific === */
.ingame-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 24px #0003;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.ingame-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px #0005;
    border-color: var(--accent);
}

.ingame-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ingame-item-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ingame-item-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.ingame-item-game {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.ingame-item-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ingame-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Purchase Modal === */
#purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#purchase-modal .modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#close-purchase-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

#close-purchase-modal:hover {
    background: var(--inactive);
}

.purchase-image {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.purchase-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.purchase-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1.5rem;
    text-align: center;
}

.purchase-price.free {
    color: var(--accent);
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.purchase-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.purchase-btn:hover {
    background: var(--accent-hover); /* vorher #2563eb */
    transform: scale(1.05);
}

.cancel-btn {
    background: var(--inactive);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: #555;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}