/* Modern Reset & Variables */
:root {
  --primary: #2563eb;       /* Modern Blue */
  --primary-hover: #1d4ed8;
  --bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}

body {
  margin: 0;
  /* System font stack looks more modern than just Arial */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
}

/* Header Refinement */
.header {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Grid Improvements */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px; /* Space before the description */
}

/* Card Styling */
.tool-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tool-card h3 {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

/* Description Section */
.tool-description {
  background: #f1f5f9;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
}

.tool-description h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

/* Footer & Links */
.footer {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer p {
  margin: 10px 0;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* Donation Button (Buy Me a Coffee Style) */
.donate-btn {
  display: inline-block;
  background: #ffdd00; /* Classic BMC Yellow */
  color: #000000;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s;
}

.donate-btn:hover {
  transform: scale(1.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  background: #f1f5f9;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.drop-zone:hover {
  border-color: var(--primary);
}

.drop-zone .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.file-limit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: block;
}

.donate-reminder {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.donate-reminder p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #92400e;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
