/* Professional Gaming Pages Common Styles - Modern Girl Design */

/* Removed external font imports to enforce system fonts */

/* CSS Variables */
:root {
  --accent-color: #9d174d; /* deeper, accessible pink for text */
  --card-gradient-1: #ffe9f4; /* softer pink */
  --card-gradient-2: #f4ecff; /* gentle lilac */
  --card-gradient-3: #eaf6ff; /* light blue */
}

/* Base styles (scoped to game pages) */
body.game-page {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    /* Remove gradient to allow global site background */
    min-height: 100vh;
    padding-top: 80px;
    letter-spacing: 0.025em;
}

/* Professional Header Styles */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

/* Branding text uses the same system font */
.game-brand-text {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.game-header:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Logo and branding */
.game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.game-logo img:hover {
    transform: scale(1.05);
}

.game-brand-text {
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    font-style: italic;
}

/* Navigation styles */
.game-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.game-nav-link {
    color: var(--accent-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.game-nav-link:hover {
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.1);
}

.game-nav-link.active {
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.15);
    font-weight: 600;
}

/* Dropdown styles */
.game-dropdown {
    position: relative;
}

.game-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.game-dropdown:hover .game-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.game-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.game-dropdown-item:hover {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-color);
}

.game-dropdown-item.active {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-color);
    font-weight: 600;
}

/* Main content container */
.game-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Game header section */
.game-hero-section {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.game-hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.game-hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

/* Form styles */
.game-form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.game-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-form-group {
    margin-bottom: 1.5rem;
}

.game-form-label {
    display: block;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.game-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.game-form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Package grid */
.game-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-package-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-package-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px);
}

.game-package-card:hover::before {
    transform: scaleX(1);
}

.game-package-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05));
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.game-package-card.selected::before {
    transform: scaleX(1);
}

/* Buttons */
.game-btn-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.game-btn-secondary {
    background: white;
    color: var(--accent-color);
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.05);
}

/* Notification styles */
.game-notification-btn {
    position: relative;
    padding: 8px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.game-notification-btn:hover {
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.1);
}

.game-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .game-main-container {
        padding: 1rem 0.5rem;
    }
    
    .game-hero-section {
        padding: 2rem 1rem;
    }
    
    .game-hero-title {
        font-size: 2rem;
    }
    
    .game-packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-form-container {
        padding: 1.5rem;
    }
}

/* Loading states */
.game-loading {
    opacity: 0.6;
    pointer-events: none;
}

.game-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error states */
.game-success {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border-color: #059669;
}

.game-error {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

/* Unified package icon layout */
.htet-package-card {
  display: flex;
  flex-direction: column;
  min-height: 110px;
}
.htet-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.htet-package-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.htet-package-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.htet-package-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.htet-package-content {
  flex: 1;
  text-align: center;
  width: 100%;
}
.htet-package-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.2;
}
.htet-package-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}
.htet-price {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Centralized Gradient Package Card Styles */
.package-card {
  background: linear-gradient(135deg, var(--card-gradient-1), var(--card-gradient-2) 45%, var(--card-gradient-3)) !important;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Hover interaction */
.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.18);
}
/* Selected state */
.package-card.selected {
  border-color: var(--accent-color, #9d174d);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.08)) !important;
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.22);
 }
/* Content tweaks inside package card */
.package-card .htet-package-title {
  color: var(--accent-color);
}
.package-card .htet-package-subtitle {
  color: var(--accent-color);
}
.package-card .htet-price {
  color: var(--accent-color);
  font-weight: 700;
}
@media (max-width: 480px) {
  .htet-package-title { font-size: 0.9rem; }
  .htet-price { font-size: 0.85rem; }
}
#purchaseBtn {
  background: linear-gradient(135deg, var(--btn-gradient-from, #ec4899), var(--btn-gradient-to, #8b5cf6)) !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(236, 72, 153, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#purchaseBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(236, 72, 153, 0.24);
}
#purchaseBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
body.game-page {
    padding-top: 0; /* Allow hero to sit flush under fixed header */
}