/* File: /public_html/assets/css/style.css */

/* --- 1. Variables (Premium Obsidian & Gold Theme) --- */
:root {
  --gold-light: #fde047;
  --gold-main: #fbbf24;
  --gold-dark: #d97706;
  
  --bg-body: #0b1120;       /* Very deep obsidian blue */
  --bg-card: #1e293b;       /* Slate blue for cards */
  --bg-input: #0f172a;      /* Darker slate for inputs */
  
  --text-main: #f8fafc;     /* Crisp white */
  --text-muted: #94a3b8;    /* Professional gray */
  
  --border-color: #334155;  /* Subtle dividers */
  
  --btn-red: #ef4444;       
  --btn-red-hover: #b91c1c; 
  --btn-green: #10b981;     
  --btn-green-hover: #047857;
  --btn-blue: #3b82f6;      
  --btn-blue-hover: #1d4ed8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

a { text-decoration: none; color: inherit; }

/* --- 2. Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding: 40px 0; }

/* --- 3. Header & Footer --- */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--gold-main);
  position: sticky; top: 0; z-index: 50; padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--gold-main); display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px;}

.desktop-nav { display: flex; gap: 25px; }
.desktop-nav a { font-weight: 600; color: var(--text-main); transition: color 0.3s ease; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;}
.desktop-nav a:hover { color: var(--gold-main); }

.site-footer { background-color: #020617; padding: 50px 0 20px; margin-top: auto; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-grid h3 { color: var(--gold-main); margin-bottom: 15px; font-size: 1.2rem;}
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-main); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* --- 4. Game Blueprint Styles --- */
.game-header { text-align: center; margin-bottom: 40px; }
.game-header h1 { font-size: 3rem; color: var(--gold-main); margin-bottom: 15px; text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2); }

/* Premium Budget Sticky Bar */
.budget-display {
  background: linear-gradient(145deg, var(--bg-card), #0f172a);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--gold-dark);
  text-align: center;
  margin-bottom: 40px;
  position: sticky;
  top: 80px;
  z-index: 40;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.7);
}
.budget-amount { 
  color: var(--gold-light); 
  font-size: 3rem; 
  font-weight: 900; 
  letter-spacing: 1px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
}

/* --- 5. Game Cards & Affiliate Links --- */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }

.item-card {
  background: var(--bg-card);
  padding: 25px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.item-card:hover { 
  transform: translateY(-8px); 
  border-color: var(--gold-main); 
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Affiliate Link Styling */
.affiliate-link { cursor: pointer; display: block; transition: transform 0.2s; }
.affiliate-link:hover { transform: scale(1.05); }

.item-emoji { font-size: 4rem; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.item-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.item-price { color: var(--gold-main); font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; }

/* --- 6. Controls (Buttons & Inputs) --- */
.controls-wrapper { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: auto; }

.btn-action {
  color: white; 
  border: none; 
  width: 45px; 
  height: 45px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 1.6rem; 
  font-weight: bold; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.btn-sell { background: linear-gradient(135deg, var(--btn-red), var(--btn-red-hover)); }
.btn-sell:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4); }
.btn-sell:active { transform: scale(0.95); }

.btn-buy { background: linear-gradient(135deg, var(--btn-green), var(--btn-green-hover)); }
.btn-buy:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4); }
.btn-buy:active { transform: scale(0.95); }

.qty-input { 
  width: 85px; 
  height: 45px; 
  text-align: center; 
  font-size: 1.2rem; 
  font-weight: 800; 
  border: 2px solid var(--border-color); 
  border-radius: 8px; 
  background: var(--bg-input); 
  color: var(--text-main); 
  outline: none; 
  transition: border-color 0.3s;
}
.qty-input:focus { border-color: var(--gold-main); box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }

/* Chrome, Safari, Edge, Opera hide arrows in number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }

.btn-max { 
  background: linear-gradient(135deg, var(--btn-blue), var(--btn-blue-hover)); 
  color: white; 
  border: none; 
  width: 100%; 
  padding: 12px 0; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 800; 
  font-size: 1.1rem; 
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.btn-max:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4); }
.btn-max:active { transform: translateY(1px); }

/* --- 7. Receipt Area --- */
.receipt-area { margin-top: 60px; background: var(--bg-card); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.5);}
.receipt-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border-color); padding: 15px 0; font-size: 1.15rem; }

@media (max-width: 768px) { 
  .desktop-nav { display: none; } 
  .budget-amount { font-size: 2.2rem; } 
  .game-header h1 { font-size: 2.2rem; }
}