/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove blue outline on button click */
button:focus,
input:focus,
select:focus,
textarea:focus,
.toolbar-btn:focus {
  outline: none !important;
  border-color: #cbd5e0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.7;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a5568;
  text-decoration: none;
}

.breadcrumb {
  color: #718096;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #4299e1;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Blog Specific Styles */
.blog-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-header .meta {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.blog-content {
  padding: 3rem 2rem;
}

.blog-content h2 {
  font-size: 2rem;
  color: #2d3748;
  margin: 2rem 0 1rem 0;
  border-bottom: 3px solid #4299e1;
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  color: #4a5568;
  margin: 1.5rem 0 0.8rem 0;
}

.blog-content p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1rem 2rem;
  line-height: 1.8;
}

.blog-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.highlight-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.security-tip {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.warning-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid #ff9800;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.cia-triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cia-item {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e0e7ff;
  text-align: center;
}

.cia-item h4 {
  font-size: 1.3rem;
  color: #3f51b5;
  margin-bottom: 1rem;
}

.threat-list {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #4299e1;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background: #3182ce;
  transform: translateY(-2px);
}

/* Table of Contents */
.table-of-contents {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2d3748;
}

.table-of-contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-of-contents li {
  margin: 0.5rem 0;
}

.table-of-contents a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 500;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-header {
    padding: 2rem 1rem;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-content {
    padding: 2rem 1rem;
  }

  .blog-content h2 {
    font-size: 1.6rem;
  }

  .cia-triad {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.8rem;
  }

  .blog-content h2 {
    font-size: 1.4rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Print Styles */
@media print {
  .header,
  .back-to-top {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .blog-container {
    box-shadow: none !important;
  }
}
