/* UGyard.com - Professional Documentation Styles */
/* Clean A4 Paper/Essay Aesthetic */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4a4a4a;
  --accent-color: #376045;
  --background: #fafafa;
  --paper: #ffffff;
  --border: #e5e5e5;
  --light-text: #666666;
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
}

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

body {
  font-family: 'Charter', 'Georgia', 'Cambria', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--primary-color);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container - A4 Paper Style */
.container {
  max-width: 21cm;
  margin: 2rem auto;
  padding: 3rem;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  min-height: 29.7cm;
}

@media (max-width: 768px) {
  .container {
    margin: 0;
    padding: 2rem 1.5rem;
    box-shadow: none;
    border: none;
    min-height: 100vh;
  }
}

/* Header */
header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
}

.site-title {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.site-title a:hover {
  color: var(--accent-color);
}

.tagline {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-style: italic;
}

/* Navigation */
nav {
  margin: 1.5rem 0;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 500;
}

/* Typography */
h1 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Lists */
ul, ol {
  margin: 1.25rem 0 1.25rem 2rem;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

ul ul, ol ol {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

/* Special Elements */
.date {
  font-size: 0.9rem;
  color: var(--light-text);
  font-style: italic;
  display: block;
  margin-bottom: 1.5rem;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-style: italic;
}

.note {
  background: #fef9e7;
  border-left: 4px solid #f39c12;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.important {
  background: #fef5f5;
  border-left: 4px solid #e53e3e;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-weight: 500;
}

strong {
  font-weight: 600;
  color: var(--primary-color);
}

em {
  font-style: italic;
}

/* Contact & CTA */
.contact-info {
  background: var(--background);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
  margin: 1rem 0;
}

.cta-button:hover {
  background: var(--link-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--light-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.footer-links a {
  color: var(--secondary-color);
  border: none;
}

.copyright {
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--background);
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* Print Styles */
@media print {
  body {
    background: white;
  }
  
  .container {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 1cm;
  }
  
  nav, footer {
    display: none;
  }
  
  a {
    color: var(--primary-color);
    border-bottom: none;
  }
  
  .cta-button {
    display: none;
  }
}