/* TTRPG Auction House Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
 line-height: 1.6;
 color: #2c3e50;
 background: #f8f9fa;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 1rem;
}

header {
 background: linear-gradient(135deg, #2c3e50, #34495e);
 color: white;
 padding: 1rem 0;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
 font-size: 1.8rem;
 font-weight: 700;
}

nav a {
 color: #ecf0f1;
 text-decoration: none;
 margin-left: 1.5rem;
 font-size: 0.9rem;
 transition: opacity 0.2s;
}

nav a:hover {
 opacity: 0.8;
}

.hero {
 background: linear-gradient(120deg, #3498db, #2980b9);
 color: white;
 padding: 2rem 0 1.5rem;
 text-align: center;
}

.hero h2 {
 font-size: 2.2rem;
 margin-bottom: 0.5rem;
}

.hero p {
 font-size: 1.1rem;
 opacity: 0.95;
}

.preset-buttons {
 margin-top: 1.5rem;
}

.preset-btn {
 background: rgba(255,255,255,0.2);
 border: 1px solid rgba(255,255,255,0.3);
 padding: 0.5rem 1rem;
 margin: 0.25rem;
 border-radius: 20px;
 cursor: pointer;
 transition: all 0.2s;
}

.preset-btn:hover {
 background: rgba(255,255,255,0.3);
}

.dashboard-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 1rem;
}

.dashboard-header h3 {
 font-size: 1.3rem;
 color: #2c3e50;
}

.add-btn {
 background: #3498db;
 color: white;
 border: none;
 padding: 0.5rem 1rem;
 border-radius: 6px;
 cursor: pointer;
 font-weight: 600;
 transition: background 0.2s;
}

.add-btn:hover {
 background: #2980b9;
}

.watchlist-link {
 background: #f39c12;
 color: white;
 border: none;
 padding: 0.3rem 0.8rem;
 border-radius: 4px;
 cursor: pointer;
 font-size: 0.9rem;
 margin-bottom: 1rem;
}

.watchlist-link:hover {
 background: #d68910;
}

#watchlist-section {
 background: #fff3cd;
 padding: 1rem;
 border-radius: 8px;
 margin-bottom: 1rem;
}

#watchlist-section h4 {
 font-size: 0.95rem;
 margin-bottom: 0.5rem;
}

#watchlist-section input,
#watchlist-section select {
 padding: 0.4rem;
 border: 1px solid #ccc;
 border-radius: 4px;
 margin-right: 0.5rem;
}

.items-container {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1rem;
}

.item-card {
 background: white;
 border-radius: 8px;
 padding: 1rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
 border-left: 4px solid #bdc3c7;
}

.item-card.featured {
 border-left-color: #3498db;
}

.item-header {
 display: flex;
 margin-bottom: 0.8rem;
}

.item-header img {
 width: 60px;
 height: 60px;
 object-fit: cover;
 border-radius: 6px;
 margin-right: 0.8rem;
}

.item-info h4 {
 font-size: 1rem;
 margin-bottom: 0.2rem;
}

.rarity-badge {
 display: inline-block;
 padding: 0.1rem 0.5rem;
 border-radius: 10px;
 font-size: 0.75rem;
 font-weight: 600;
}

.rarity-badge.common { background: #bdc3c7; color: #2c3e50; }
.rarity-badge.uncommon { background: #27ae60; color: white; }
.rarity-badge.rare { background: #2980b9; color: white; }
.rarity-badge.very-rare { background: #8e44ad; color: white; }
.rarity-badge.legendary { background: #e67e22; color: white; }

.item-bids {
 display: flex;
 justify-content: space-between;
 font-size: 0.85rem;
 color: #7f8c8d;
 margin-bottom: 0.8rem;
}

.item-actions {
 display: flex;
 gap: 0.5rem;
}

.bid-btn,
.watch-btn {
 padding: 0.3rem 0.6rem;
 border-radius: 4px;
 cursor: pointer;
 font-size: 0.8rem;
}

.bid-btn {
 background: #3498db;
 color: white;
 border: none;
}

.bid-btn:hover {
 background: #2980b9;
}

.watch-btn {
 background: #95a5a6;
 color: white;
 border: none;
}

.watch-btn.active {
 background: #27ae60;
}

.watch-btn:hover {
 opacity: 0.9;
}

.price-history {
 margin-top: 0.8rem;
}

.history-bar {
 height: 8px;
 background: #ecf0f1;
 border-radius: 4px;
 overflow: hidden;
}

.history-bar span {
 height: 100%;
 display: block;
}

.history-label {
 font-size: 0.7rem;
 color: #95a5a6;
}

#add-item-form {
 background: white;
 padding: 1.5rem;
 border-radius: 8px;
 margin: 1.5rem 0;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#add-item-form h3 {
 margin-bottom: 1rem;
}

.form-row {
 margin-bottom: 1rem;
}

.form-row label {
 display: block;
 font-size: 0.9rem;
 margin-bottom: 0.3rem;
 font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
 width: 100%;
 padding: 0.5rem;
 border: 1px solid #ddd;
 border-radius: 4px;
 font-size: 0.95rem;
}

.form-row textarea {
 resize: vertical;
}

.form-actions {
 display: flex;
 gap: 0.5rem;
 margin-top: 0.5rem;
}

.submit-btn {
 background: #27ae60;
 color: white;
 border: none;
 padding: 0.6rem 1.2rem;
 border-radius: 6px;
 cursor: pointer;
 font-weight: 600;
}

.submit-btn:hover {
 background: #229954;
}

.reset-btn {
 background: #e74c3c;
 color: white;
 border: none;
 padding: 0.6rem 1.2rem;
 border-radius: 6px;
 cursor: pointer;
}

.reset-btn:hover {
 background: #c0392b;
}

.price-insights {
 background: white;
 padding: 1.5rem;
 border-radius: 8px;
 margin: 1.5rem 0;
}

.insights-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
}

.insight-card {
 padding: 1rem;
}

.insight-card h4 {
 font-size: 1rem;
 margin-bottom: 0.8rem;
 color: #2c3e50;
}

.price-list li,
.activity-list li {
 padding: 0.3rem 0;
}

.item-name {
 color: #34495e;
}

.price-value {
 float: right;
 font-weight: 600;
 color: #27ae60;
}

.rarity-bars {
 margin-top: 0.5rem;
}

.rarity-bar {
 display: flex;
 align-items: center;
 margin-bottom: 0.3rem;
}

.rarity-bar .label {
 width: 80px;
 font-size: 0.8rem;
}

.rarity-bar .bar {
 flex: 1;
 height: 12px;
 background: #ecf0f1;
 border-radius: 6px;
 overflow: hidden;
}

.rarity-bar .fill {
 height: 100%;
 background: #3498db;
 border-radius: 6px;
}

.export-section {
 background: white;
 padding: 1.5rem;
 border-radius: 8px;
 margin: 1.5rem 0;
}

.export-options {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.export-btn {
 background: #9b59b6;
 color: white;
 border: none;
 padding: 0.5rem 1rem;
 border-radius: 6px;
 cursor: pointer;
 font-size: 0.9rem;
}

.export-btn:hover {
 background: #8e44ad;
}

#share-url-result {
 margin-top: 1rem;
 padding: 0.8rem;
 background: #d4edda;
 border-radius: 6px;
}

.supporting-content h3 {
 margin: 1.5rem 0 1rem;
 font-size: 1.5rem;
}

.supporting-content p {
 margin-bottom: 1rem;
}

footer {
 background: #2c3e50;
 color: #bdc3c7;
 padding: 1rem 0;
 margin-top: 2rem;
}

footer a {
 color: #3498db;
}

footer p {
 font-size: 0.9rem;
}

.hidden { display: none; }

@media (max-width: 768px) {
 header h1 { font-size: 1.5rem; }
 .hero h2 { font-size: 1.8rem; }
 .dashboard-header { flex-direction: column; align-items: flex-start; }
 .items-container { grid-template-columns: 1fr; }
 .export-options { flex-direction: column; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
