/* Premium Dashboard / Portal Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #f4f7fe;
  --text-color: #2b3674;
  --text-secondary: #a3aed1;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.8);
  --accent-color: #4318FF;
  --accent-hover: #3311db;
  --shadow: 0 18px 40px rgba(112, 144, 176, 0.12);
  --gradient: linear-gradient(135deg, #868CFF 0%, #4318FF 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b1437;
    --text-color: #ffffff;
    --text-secondary: #a3aed1;
    --card-bg: rgba(17, 28, 68, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --accent-color: #7551FF;
    --accent-hover: #868CFF;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #868CFF 0%, #7551FF 100%);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  /* Fun background decorative blobs */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(67, 24, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(67, 24, 255, 0.05) 0%, transparent 25%);
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  padding-top: calc(70px + 4rem); /* account for global nav */
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.tool-card:hover::before {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .tool-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(67, 24, 255, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .tool-icon {
    background: rgba(117, 81, 255, 0.1);
  }
}

.tool-card:hover .tool-icon {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.tool-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s ease;
}

.tool-card:hover .tool-footer {
  gap: 0.5rem;
}

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

.tool-card {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(7) { animation-delay: 0.7s; }
.tool-card:nth-child(8) { animation-delay: 0.8s; }
