/* MineCore Store – Store-specific Styles */

/* === HERO === */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88,101,242,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,101,242,.12);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .8rem; font-weight: 600; color: var(--accent-light);
  margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: .06em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}

/* === CATEGORY TILES === */
.section-title {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.category-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.category-tile::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
}
.category-tile:hover {
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.category-tile:hover::before { opacity: 1; }

.category-tile[data-cat="minecraft"] { border-color: rgba(88,101,242,.3); }
.category-tile[data-cat="minecraft"]::before { background: radial-gradient(ellipse at top, rgba(88,101,242,.08) 0%, transparent 70%); }
.category-tile[data-cat="minecraft"]:hover { border-color: var(--mc); }

.category-tile[data-cat="software"] { border-color: rgba(0,180,216,.3); }
.category-tile[data-cat="software"]::before { background: radial-gradient(ellipse at top, rgba(0,180,216,.08) 0%, transparent 70%); }
.category-tile[data-cat="software"]:hover { border-color: var(--sw); }

.category-tile[data-cat="dienstleistungen"] { border-color: rgba(249,115,22,.3); }
.category-tile[data-cat="dienstleistungen"]::before { background: radial-gradient(ellipse at top, rgba(249,115,22,.08) 0%, transparent 70%); }
.category-tile[data-cat="dienstleistungen"]:hover { border-color: var(--dl); }

.category-tile[data-cat="ai"] { border-color: rgba(168,85,247,.3); }
.category-tile[data-cat="ai"]::before { background: radial-gradient(ellipse at top, rgba(168,85,247,.08) 0%, transparent 70%); }
.category-tile[data-cat="ai"]:hover { border-color: var(--ai); }

.category-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.category-icon-mc  { background: rgba(88,101,242,.15); color: var(--mc); }
.category-icon-sw  { background: rgba(0,180,216,.15);  color: var(--sw); }
.category-icon-dl  { background: rgba(249,115,22,.15); color: var(--dl); }
.category-icon-ai  { background: rgba(168,85,247,.15); color: var(--ai); }

.category-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.category-tile p  { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.category-count {
  display: inline-block;
  margin-top: 12px;
  font-size: .75rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  padding: 2px 10px; border-radius: 20px;
}

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  border-color: var(--border2);
  text-decoration: none;
  color: var(--text);
}
.product-thumb {
  position: relative;
  padding-top: 56%;
  background: var(--surface2);
  overflow: hidden;
}
.product-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
}
.product-thumb-badge {
  position: absolute; top: 10px; left: 10px;
}
.product-thumb-wish {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(13,17,23,.7);
  backdrop-filter: blur(8px);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.product-thumb-wish:hover { background: var(--danger-bg); }
.product-thumb-wish svg { width: 14px; color: var(--text-muted); }
.product-thumb-wish.wishlisted svg { color: var(--danger); fill: var(--danger); }

.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: .95rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.product-price .original { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.product-price .sale { color: var(--success); }
.product-type-badge { font-size: .7rem; color: var(--text-muted); background: var(--surface3); padding: 2px 8px; border-radius: 10px; }

/* === PRODUCT DETAIL === */
.product-detail { padding: 40px 0 80px; }
.product-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-bottom: 32px; }
.product-breadcrumb a { color: var(--text-muted); }
.product-breadcrumb a:hover { color: var(--text); text-decoration: none; }
.product-breadcrumb span { color: var(--border2); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.product-gallery { margin-bottom: 24px; }
.gallery-main {
  background: var(--surface2);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.product-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.product-version { font-size: .8rem; color: var(--text-muted); background: var(--surface3); padding: 3px 10px; border-radius: 20px; }
.product-desc-full { color: var(--text-light); font-size: .9rem; line-height: 1.75; margin-bottom: 24px; }

.product-features { margin-bottom: 24px; }
.product-features h4 { font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-light); }
.feature-list li::before { content: ''; width: 18px; height: 18px; background: var(--success-bg); border-radius: 50%; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232da44e' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

/* === PURCHASE BOX === */
.purchase-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.purchase-price { margin-bottom: 20px; }
.purchase-price .main-price { font-size: 2rem; font-weight: 800; }
.purchase-price .old-price { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; margin-right: 8px; }
.purchase-price .save-badge { font-size: .75rem; background: var(--success-bg); color: var(--success); padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.purchase-box .btn-full { margin-bottom: 10px; }
.purchase-info { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.purchase-info li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); }
.purchase-info li svg { width: 14px; color: var(--accent-light); flex-shrink: 0; }

/* === SERVICE INQUIRY === */
.service-inquiry {
  background: linear-gradient(135deg, rgba(249,115,22,.08), rgba(249,115,22,.04));
  border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}
.service-inquiry .si-icon { font-size: 2.5rem; margin-bottom: 12px; }
.service-inquiry h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-inquiry p { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

/* === PAGINATION === */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 40px;
}
.page-btn {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .875rem; color: var(--text-light);
  transition: var(--transition); text-decoration: none;
}
.page-btn:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* === CATEGORY PAGE HEADER === */
.cat-header {
  padding: 40px 0 32px;
}
.cat-header-inner {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 16px;
}
.cat-header-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.cat-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.cat-header p  { color: var(--text-muted); font-size: .9rem; }

.subcategory-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.sub-tab {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .85rem; color: var(--text-light);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.sub-tab:hover { border-color: var(--border2); color: var(--text); text-decoration: none; }
.sub-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === SHOP FILTERS === */
.shop-layout { display: flex; gap: 32px; align-items: flex-start; padding: 32px 0; }
.shop-filters {
  width: 220px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  cursor: pointer; font-size: .875rem; color: var(--text-light);
  transition: color .15s;
}
.filter-option:hover { color: var(--text); }
.filter-option input[type="checkbox"] { accent-color: var(--accent); }
.shop-results { flex: 1; }
.shop-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.shop-count { font-size: .875rem; color: var(--text-muted); }
.shop-sort select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; color: var(--text); font-size: .875rem; outline: none; cursor: pointer; }

/* === STATS CARDS === */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; }
.stat-icon-orders { background: rgba(88,101,242,.15); color: var(--accent); }
.stat-icon-dl     { background: rgba(45,164,78,.15);   color: var(--success); }
.stat-icon-tickets{ background: rgba(56,139,253,.15);   color: var(--info); }
.stat-icon-wish   { background: rgba(248,81,73,.15);    color: var(--danger); }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* === ORDER LIST === */
.order-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.order-row:last-child { border-bottom: none; }
.order-row:hover { background: var(--surface2); }
.order-id { font-weight: 600; font-size: .9rem; min-width: 80px; }
.order-date { font-size: .8rem; color: var(--text-muted); flex: 1; }
.order-items-count { font-size: .85rem; color: var(--text-light); }
.order-total { font-weight: 700; font-size: .95rem; margin-left: auto; }

/* === TICKET CARDS === */
.ticket-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  cursor: pointer; text-decoration: none; color: var(--text);
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: var(--surface2); text-decoration: none; color: var(--text); }
.ticket-subject { font-weight: 600; font-size: .9rem; flex: 1; }
.ticket-meta { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }
.ticket-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* === PRIORITY COLORS === */
.priority-low    { color: var(--success); }
.priority-medium { color: var(--warning); }
.priority-high   { color: var(--danger); }
.priority-urgent { color: var(--danger); font-weight: 700; }

/* === TICKET DETAIL === */
.ticket-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.ticket-messages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ticket-message {
  display: flex; gap: 12px;
  align-items: flex-start;
}
.ticket-message.staff { flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface3);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
  flex-shrink: 0; overflow: hidden;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  max-width: 80%;
}
.ticket-message.staff .msg-bubble {
  background: rgba(88,101,242,.1);
  border-color: rgba(88,101,242,.2);
}
.msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.msg-name { font-size: .8rem; font-weight: 600; }
.msg-time { font-size: .75rem; color: var(--text-muted); }
.staff-badge { font-size: .65rem; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 10px; }
.msg-text { font-size: .875rem; color: var(--text-light); line-height: 1.6; white-space: pre-wrap; }

.ticket-reply-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ticket-reply-box textarea { width: 100%; background: transparent; border: none; padding: 14px 16px; color: var(--text); font-size: .875rem; resize: none; outline: none; min-height: 100px; }
.ticket-reply-footer { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

/* === DOWNLOAD ITEM === */
.download-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.download-item:last-child { border-bottom: none; }
.download-item:hover { background: var(--surface2); }
.download-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface3); flex-shrink: 0; }
.download-info { flex: 1; }
.download-name { font-weight: 600; font-size: .9rem; }
.download-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.download-actions { flex-shrink: 0; display: flex; gap: 8px; }

/* === WISHLIST === */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* === RESPONSIVE STORE === */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .purchase-box { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .ticket-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { flex-direction: column; }
  .shop-filters { width: 100%; position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
