/* ===============================================
   COMMON TOOLS STYLES
   Used across all tool pages for consistent design
   =============================================== */

/* ===============================================
   HERO SECTION - Common for all tools
   =============================================== */
.hero {
  width: 100%;
  background: #fafafa;
  padding: 4rem 0;
  text-align: center;
  margin-top: 80px; /* Account for fixed header */
}

.hero-content {
  max-width: 800px; /* Fixed width for better consistency */
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #0f0f0f;
  letter-spacing: -0.04em;
  line-height: 1.1;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #525252;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

/* Breadcrumb Navigation */
.breadcrumb {
  font-size: 14px;
  color: #525252;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  width: fit-content;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb a {
  margin-right: 6px;
  color: #0f0f0f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #525252;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #a3a3a3;
}

.breadcrumb .current {
  color: #525252;
  font-weight: 400;
}

/* ===============================================
   MAIN LAYOUT - Three column grid system
   =============================================== */
.main-container {
  max-width: 1400px; /* Increased from 1200px for wider content */
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 2.5rem; /* Increased gap for better spacing */
  min-height: 70vh;
}

/* ===============================================
   SIDEBAR - Advertisement areas
   =============================================== */
.sidebar {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem; /* Sticky positioning for desktop */
}

.sidebar h3 {
  font-size: 12px;
  font-weight: 600;
  color: #a3a3a3;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-placeholder {
  background: #f8f8f8;
  height: 600px;
  width: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
  font-size: 12px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.ad-dimensions {
  font-weight: 600;
  color: #525252;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

/* ===============================================
   TOOL CONTENT - Main content area
   =============================================== */
.tool-content {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3rem; /* Increased from 2.5rem for more breathing room */
}

.tool-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.tool-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 0.75rem;
}

.tool-description {
  color: #525252;
  line-height: 1.6;
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===============================================
   COMMON INPUT STYLES
   =============================================== */
.input-section {
  margin-bottom: 2.5rem;
}

.textarea-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.text-input {
  width: 100%;
  min-height: 300px;
  padding: 1.5rem;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
  background: #ffffff;
}

.text-input:focus {
  outline: none;
  border-color: #0f0f0f;
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.1);
}

.text-input::placeholder {
  color: #a3a3a3;
  font-style: italic;
}

/* ===============================================
   BUTTON STYLES
   =============================================== */
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  width: 50%;
  background: #0f0f0f;
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.005em;
}

@media (max-width: 768px) {
  .btn-primary {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 15, 15, 0.25);
}

.btn-secondary {
  width: 50%;
  background: #f8f8f8;
  color: #525252;
  padding: 0.875rem 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.005em;
}

@media (max-width: 768px) {
  .btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.btn-secondary:hover {
  background: #f0f0f0;
  border-color: #d5d5d5;
  color: #0f0f0f;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablet Design */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .ad-placeholder {
    height: 500px;
  }
}

/* Mobile Design */
@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .sidebar {
    order: 2; /* Move ads below content on mobile */
    position: static;
  }

  .tool-content {
    order: 1;
    padding: 2rem;
  }

  .ad-placeholder {
    height: 250px; /* Shorter ad space on mobile */
  }

  .hero {
    padding: 3rem 0;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 200px;
  }
}

/* Small Mobile Design */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .main-container {
    padding: 1.5rem 1rem;
  }

  .tool-content {
    padding: 1.5rem;
  }

  .text-input {
    min-height: 250px;
    padding: 1rem;
    font-size: 14px;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .tool-content {
    padding: 1rem;
  }
}
