/* NetStudyHub - Auxiliary Pages Stylesheet */

:root {
  --primary: #1e40af;
  --secondary: #0891b2;
  --accent: #ea580c;
  --neutral-light: #f8fafc;
  --neutral-dark: #1e293b;
  --border: #e2e8f0;
  --text-muted: #64748b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: var(--primary);
}

h2 {
  font-size: 2.25rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--neutral-dark);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-svg {
  width: 50px;
  height: 50px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 300px);
}

.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title h1 {
  margin-bottom: 0.5rem;
}

.page-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Page Content */
.page-content {
  padding: 3rem 2rem;
}

.page-content .container h2 {
  margin-top: 2rem;
}

.page-content .container h3 {
  margin-top: 1.5rem;
}

.page-content .container ul,
.page-content .container ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content .container li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Page Section */
.page-section {
  padding: 4rem 2rem;
}

/* Content Blocks */
.content-block {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--neutral-light);
  border-radius: 0.75rem;
}

.content-block h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.content-block h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-block ul,
.content-block ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background-color: var(--neutral-dark);
  color: white;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--neutral-dark);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 9999;
}

.cookie-banner.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--secondary);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-actions .btn-accept {
  background-color: var(--primary);
  color: white;
}

.cookie-actions .btn-accept:hover {
  background-color: #1e3a8a;
}

.cookie-actions .btn-decline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-actions .btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .content-block {
    padding: 1.5rem;
  }

  .cookie-banner.active {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-actions button {
    width: 100%;
  }
}
