/* Galway United Tactics Analyzer - 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:#1a1a1a;background:#f8f9fa;}
.container {max-width:1200px;margin:0 auto;padding:0 1rem;}
.site-header {background:#005720;color:#fff;padding:1rem 0;border-bottom:3px solid #c51b23;}
.site-title {font-size:1.8rem;font-weight:700;}
.site-title a {color:#fff;text-decoration:none;}
.site-nav a {color:#fff;text-decoration:none;margin-left:1.5rem;font-weight:500;}
.site-nav a:hover {text-decoration:underline;}
.hero-section {background:linear-gradient(135deg,#005720 0%,#003d1a 100%);color:#fff;padding:2rem 0;margin-bottom:2rem;}
.hero-section h2 {font-size:2rem;margin-bottom:0.5rem;}
.hero-section p {font-size:1.1rem;opacity:0.95;margin-bottom:1.5rem;}
.presets-bar button {background:#c51b23;color:#fff;border:none;padding:0.75rem 1.5rem;margin-right:0.5rem;border-radius:4px;cursor:pointer;font-weight:500;}
.presets-bar button:hover {background:#a31717;}
.analyzer-section {display:flex;gap:2rem;flex-wrap:wrap;margin-bottom:2rem;}
.formation-panel {flex:1;min-width:280px;background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.formation-panel h3 {font-size:1.25rem;margin-bottom:1rem;color:#005720;}
.controls-row {display:flex;gap:0.5rem;align-items:center;margin-bottom:1rem;}
.controls-row label {font-weight:500;}
#formationSelect {padding:0.5rem;border:1px solid #ddd;border-radius:4px;background:#fff;}
#tactical-board {position:relative;background:#003d1a;border-radius:6px;height:300px;cursor:pointer;overflow:hidden;}
.tactical-board::before {content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(45deg,#003d1a 25%,transparent 25%),linear-gradient(-45deg,#003d1a 25%,transparent 25%);background-size:20px 20px;}
.goal {position:absolute;width:8px;height:32px;background:#c51b23;border-radius:2px;top:50%;left:-4px;transform:translateY(-50%);}
.post {position:absolute;width:8px;height:32px;background:#c51b23;border-radius:2px;top:50%;right:-4px;transform:translateY(-50%);}
.player {position:absolute;width:36px;height:36px;background:#fff;border:2px solid #005720;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:0.7rem;font-weight:600;cursor:move;user-select:none;}
.player.gk {background:#005720;color:#fff;}
.player.def {background:#e3f2fd;color:#005720;}
.player.mid {background:#fffbf0;color:#5d4037;}
.player.att {background:#c8e6c9;color:#2e7d32;}
.player:hover {transform:scale(1.1);z-index:10;box-shadow:0 4px 12px rgba(0,0,0,0.3);}
.player-info {margin-top:1rem;padding:0.75rem;background:#f5f5f5;border-radius:4px;font-size:0.9rem;}
.player-info span {color:#666;}
.actions-section {background:#fff;padding:1.5rem;border-radius:8px;margin-bottom:2rem;}
.actions-section h3 {font-size:1.25rem;margin-bottom:1rem;color:#005720;}
.action-buttons {display:flex;gap:1rem;flex-wrap:wrap;}
.action-buttons button {padding:0.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-weight:500;}
#action-export {background:#005720;color:#fff;}
#action-share {background:#c51b23;color:#fff;}
#action-print {background:#4a4a4a;color:#fff;}
.action-buttons button:hover {opacity:0.9;}
.share-status {margin-top:0.5rem;color:#005720;font-size:0.9rem;}
.analysis-notes {margin-bottom:2rem;}
.note-grid {display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.note-card {background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.note-card.wide {grid-column:1/-1;}
.note-card h4 {color:#005720;margin-bottom:0.75rem;font-size:1.1rem;}
.note-card p {color:#555;}
.quick-reference {background:#fff;padding:1.5rem;border-radius:8px;margin-bottom:2rem;}
.quick-reference h3 {color:#005720;margin-bottom:1rem;}
.quick-reference table {width:100%;border-collapse:collapse;}
.quick-reference th, .quick-reference td {padding:0.75rem;border-bottom:1px solid #eee;text-align:left;}
.quick-reference th {background:#f5f5f5;font-weight:600;}
.quick-reference tr:hover {background:#f9f9f9;}
.assumptions {background:#fff8e6;padding:1.5rem;border-radius:8px;}
.assumptions h3 {color:#bdeep  #5d4037;}
.site-footer {background:#1a1a1a;color:#ccc;padding:1rem 0;text-align:center;font-size:0.9rem;}
.site-footer a {color:#c51b23;text-decoration:none;}
.site-footer a:hover {text-decoration:underline;}
@media (max-width:768px) {
.analyzer-section {flex-direction:column;}
.hero-section {text-align:center;}
.presets-bar {justify-content:center;}
.action-buttons {flex-direction:column;}
}
@media (max-width:480px) {
.site-header {text-align:center;}
.site-nav a {margin:0 0.5rem;}
}


/* 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;
}
