/* style.css - Premium look for simple web tools */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #2b2d42, #3a86ff);
  --section-bg: rgba(255, 255, 255, 0.1);
  --section-blur: 10px;
  --primary: #ff006e;
  --secondary: #8338ec;
  --text-light: #f8f9fa;
  --text-dark: #212529;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
}

h1 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

section {
  background: var(--section-bg);
  backdrop-filter: blur(var(--section-blur));
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

section h2 {
  margin-bottom: 0.8rem;
  color: var(--primary);
  text-align: center;
}

P {
  margin-bottom: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* Calculator styles */
#calc-display {
  width: 100%;
  height: 2.5rem;
  font-size: 1.5rem;
  text-align: right;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.calc-btn {
  padding: 0.8rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

.calc-btn:active {
  transform: scale(0.95);
}

.calc-btn.op {
  background: var(--secondary);
  color: #fff;
}

#calc-eq {
  background: var(--primary);
  color: #fff;
}

#calc-clear {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

#calc-clear:hover {
  background: #e6005c;
}

/* Guess game styles */
#guess-game input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  margin-bottom: 0.5rem;
}

#guess-submit,
#guess-restart {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  transition: background 0.2s;
}

#guess-submit:hover,
#guess-restart:hover {
  background: #6a0dad;
}

#guess-feedback {
  margin-top: 0.5rem;
  min-height: 1.2rem;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  section {
    max-width: 100%;
  }
}