/* Miami Hurricanes Website Styles */

:root {
  --brand: #1f3b2e;
  --accent: #ef7d22;
  --border: #e5e7eb;
  --overlay: rgba(0, 0, 0, 0.55);
  --text: #0f172a;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: var(--accent);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--brand);
}

/* Main Content */
main {
  padding: 24px 0;
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}

.hero img {
  width: min(100%, 820px);
  height: auto;
}

.cta {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(239, 125, 34, 0.3);
}

/* Typography */
h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 8px 0;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 24px 0 8px;
}

h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 12px 0 8px;
}

p {
  line-height: 1.6;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .grid.cols-2 {
    grid-template-columns: 2fr 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 24px 0;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: var(--overlay);
  z-index: 50;
}

.modal[open] {
  display: grid;
}

.card-modal {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.card-modal header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
}

/* Form Styles */
form {
  padding: 18px 22px;
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .row.two {
    grid-template-columns: 1fr 1fr;
  }
  .row.three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.error {
  color: #b91c1c;
  font-size: 13px;
}

.help {
  font-size: 12px;
  color: var(--muted);
}

.submit {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.thanks {
  padding: 24px;
  text-align: center;
}

/* News/Scores Cards */
.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.news-title a {
  text-decoration: none;
  color: var(--text);
}

.news-title a:hover {
  color: var(--accent);
}

.news-snippet {
  margin: 0 0 8px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

.news-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
}

.news-source {
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

.news-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.loading {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}

/* Aside */
.aside-sticky {
  position: sticky;
  top: 80px;
}
