/* ========================================
   MODERN LEGAL PRO THEME
   Professional Legal Tech UI inspired by Clio, MyCase, and modern SaaS
   ======================================== */

/* ===== 1. COLOR SYSTEM ===== */
:root {
  /* Primary Brand - Professional Blue */
  --primary: #1e40af;           /* Deep professional blue */
  --primary-light: #3b82f6;     /* Lighter blue for hover */
  --primary-dark: #1e3a8a;      /* Darker blue for active */
  
  /* Neutrals - Clean and Modern */
  --white: #ffffff;
  --background: #f8fafc;        /* Soft background */
  --surface: #ffffff;           /* Card/panel surface */
  --border: #e2e8f0;           /* Subtle borders */
  
  /* Text Hierarchy */
  --text-primary: #0f172a;     /* Headings */
  --text-secondary: #475569;   /* Body text */
  --text-muted: #94a3b8;       /* Helper text */
  
  /* Shadows for Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== 2. GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== 3. NAVIGATION ===== */
nav {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav .logo-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav .logo-link:hover {
  color: var(--primary-light);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--primary);
  background-color: rgba(30, 64, 175, 0.1);
}

/* ===== 4. LAYOUT CONTAINERS ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-wrapper {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  margin: 2rem auto;
  max-width: 1200px;
  padding: 2rem;
}

/* ===== 5. CARDS ===== */
.card {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card span.arrow {
  color: var(--primary);
  font-weight: 600;
  transition: transform 0.3s ease;
  display: inline-block;
}

.card:hover span.arrow {
  transform: translateX(4px);
}

/* ===== 6. BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== 7. BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0.375rem;
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}

/* ===== 8. FORMS ===== */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 9. HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--white);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ===== 10. FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ===== 11. ACTIVITY FEED ===== */
.activity-item {
  display: flex;
  align-items: start;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.activity-item:hover {
  background: rgba(30, 64, 175, 0.05);
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== 12. RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    margin: 1rem;
    padding: 1rem;
  }
}

/* ===== 13. UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}
