@import 'variables.css';

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
p { color: var(--color-text-muted); }

a { text-decoration: none; color: inherit; }

/* Layout */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  flex: 1;
}

/* Header */
.site-header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
}

.header-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.brand {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Sections */
.tool-section {
  margin-bottom: var(--space-xl);
}

.section-header {
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin: 0;
}

/* Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* Cards */
.tool-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tool-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: none;
}

.card-category {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--color-text-main);
  transition: color var(--transition-fast);
}

.tool-card:hover .card-title {
  color: var(--color-primary);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.card-arrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

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

/* Footer */
.site-footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  text-align: center;
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-xl: 2.5rem;
  }
  h1 { font-size: 1.75rem; }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
