/* === Base Reset === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;   /* Light background only */
  color: #222;           /* Dark text */
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* === Tablet Frame === */
.tablet-frame {
  background: #e0e0e0;
  border-radius: 40px;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1), inset 0 0 10px #ccc;
  max-width: 720px;
  width: 100%;
  position: relative;
}

/* === Global Reset & Base === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.tablet-frame {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* === Grid Layout for Hub/Dashboard === */
.carplay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* === Tile Styling === */
.tile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile.full {
  grid-column: 1 / -1; /* span full width */
}

.tile h2 {
  margin-top: 0;
  font-size: 1.5em;
  word-wrap: break-word;
}

.tile p {
  font-size: 1em;
  margin: 10px 0;
}

/* === Tile Buttons & Links === */
.tile-button {
  align-self: stretch;      /* fills tile width */
  max-width: 100%;          /* never exceed tile */
  background: #0077cc;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  font-size: 1em;
  overflow-wrap: break-word;
}

.tile-button:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

/* === Footer === */
footer.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: #666;
}

/* === Responsive Adjustments === */
@media (max-width: 600px) {
  .carplay {
    grid-template-columns: 1fr;
  }
  .tile h2 {
    font-size: 1.2em;
  }
  .tile p {
    font-size: 0.9em;
  }
  .tile-button {
    font-size: 0.9em;
    padding: 10px;
  }
}
/* Hub graphic inside full-width tile */
.hub-graphic {
  max-width: 100%;   /* ✅ scales down to fit tile width */
  height: auto;      /* ✅ keeps aspect ratio */
  display: block;
  margin: 0 auto;    /* ✅ centers image horizontally */
}
