/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.last-updated {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Converter Section */
.converter-section {
  padding: 4rem 0;
  background: #eeeff0;
}

.converter-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.input-section {
  margin-bottom: 2rem;
}

.input-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

#textInput,
#textOutput {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#textInput:focus,
#textOutput:focus {
  outline: none;
  border-color: #2563eb;
}

.input-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

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

.convert-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.convert-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.convert-btn:active {
  transform: translateY(1px);
}

.output-section {
  margin-bottom: 1.5rem;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.output-header label {
  font-weight: 600;
  color: #374151;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background: #1d4ed8;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.utility-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.utility-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #d1d5db;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.utility-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #f8fafc;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* About Preview Section */
.about-preview {
  padding: 4rem 0;
  background: #f8fafc;
}

.about-preview h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.about-preview p {
  margin-bottom: 1rem;
  color: #4b5563;
  line-height: 1.7;
}

.cta-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cta-link:hover {
  color: #1d4ed8;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.content-main h2 {
  font-size: 1.875rem;
  margin: 2rem 0 1rem 0;
  color: #1f2937;
}

.content-main p {
  margin-bottom: 1.5rem;
  color: #4b5563;
  line-height: 1.7;
}

.content-main ul,
.content-main ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-main li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  line-height: 1.6;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.case-item {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.case-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.case-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.case-item code {
  background: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.feature-list li:last-child {
  border-bottom: none;
}

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

.user-type {
  padding: 1.5rem;
  background: #f0f9ff;
  border-radius: 8px;
}

.user-type h4 {
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.user-type p {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.sidebar-card ol {
  padding-left: 1.25rem;
}

.sidebar-card li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.cta-button {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background: #1d4ed8;
}

/* Privacy Policy Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-summary {
  background: #f0f9ff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.summary-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.summary-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.summary-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.privacy-footer {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  text-align: center;
}

.highlight {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.contact-method p {
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.contact-method a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

.response-time {
  background: #fef3c7;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.response-time h3 {
  margin-bottom: 0.5rem;
  color: #92400e;
}

.response-time p {
  color: #78350f;
  margin: 0;
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.submit-btn {
  width: 100%;
  background: #2563eb;
  color: white;
  padding: 0.875rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #1d4ed8;
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0;
  background: #f8fafc;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: #1f2937;
  font-size: 1.125rem;
}

.faq-item p {
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.blog-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
  border-left: 4px solid #2563eb;
  grid-column: 1 / -1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.blog-category {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.blog-date {
  color: #6b7280;
}

.blog-card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-card h2 a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card h2 a:hover {
  color: #2563eb;
}

.blog-card p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #1d4ed8;
}

.blog-sidebar .sidebar-card {
  margin-bottom: 2rem;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4b5563;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: #2563eb;
}

.category-list span {
  font-size: 0.875rem;
  color: #9ca3af;
}

.popular-posts {
  list-style: none;
  padding: 0;
}

.popular-posts li {
  margin-bottom: 0.75rem;
}

.popular-posts a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.popular-posts a:hover {
  color: #2563eb;
}

/* Blog Post Styles */
.blog-post {
  padding: 2rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.post-category {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.post-date {
  color: #6b7280;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  line-height: 1.2;
}

.post-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.875rem;
  margin: 2.5rem 0 1rem 0;
  color: #1f2937;
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: #1f2937;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.code-example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.code-example strong {
  color: #1f2937;
}

.code-example code {
  background: #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.convention-example {
  background: #1f2937;
  color: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.convention-example pre {
  margin: 0;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.convention-example code {
  color: #f8fafc;
}

.mistake-example {
  margin: 1.5rem 0;
}

.mistake-example p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mistake-example pre {
  background: #1f2937;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  overflow-x: auto;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.post-share {
  text-align: center;
  color: #6b7280;
}

.post-share a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.post-share a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

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

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .buttons-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }

  .convert-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-card.featured {
    grid-column: 1;
  }

  .post-header h1 {
    font-size: 2rem;
  }

  .post-subtitle {
    font-size: 1.125rem;
  }

  .utility-buttons {
    flex-direction: column;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .converter-card {
    padding: 1.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .buttons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
