/* ============================================
   ADSMANAGER - Common Styles
   ============================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.wide {
  max-width: 1200px;
}

/* ============================================
   HEADER
   ============================================ */

header {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  opacity: 0.95;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav a {
  color: #1e88e5;
  text-decoration: none;
  margin-right: 30px;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
}

nav a:hover {
  color: #1565c0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  background: white;
  padding: 40px 0;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 22px;
  color: #1e88e5;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

section h3 {
  font-size: 16px;
  color: #333;
  margin: 25px 0 12px 0;
  font-weight: 600;
}

section p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
  margin: 15px 0 15px 20px;
  color: #666;
}

li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #d32f2f;
}

a {
  color: #1e88e5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
  display: inline-block;
  background: #1e88e5;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.3s;
  font-weight: 500;
}

.cta-button:hover {
  background: #1565c0;
  text-decoration: none;
}

/* ============================================
   CARDS & BOXES
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #1e88e5;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-top: 0;
  color: #1e88e5;
}

/* Highlight Boxes */
.highlight {
  background: #fff3cd;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #ffc107;
  margin: 20px 0;
}

.section-auth {
  background: #e3f2fd;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #1e88e5;
}

.warning {
  background: #ffebee;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #d32f2f;
  margin: 20px 0;
}

.warning strong {
  color: #d32f2f;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #333;
  color: white;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  border-top: 1px solid #555;
}

footer h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
}

footer a {
  color: #1e88e5;
  display: block;
  margin-bottom: 8px;
}

footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section {
  font-size: 14px;
  color: #bbb;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.last-updated {
  color: #999;
  font-size: 14px;
  margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  nav a {
    margin-right: 15px;
    font-size: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section h2 {
    font-size: 18px;
  }
}

/* ============================================
   HOME PAGE SPECIFIC
   ============================================ */

.container.wide {
  max-width: 1200px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus,
button:focus,
input:focus {
  outline: 2px solid #1e88e5;
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  nav,
  footer {
    display: none;
  }

  main {
    background: white;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  a {
    text-decoration: underline;
  }
}
