/* ============================================
   PROFESSIONAL MULTI-TOOL WEBSITE - STYLESHEET
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* PRIMARY COLORS */
  --primary: #3988f7;
  --primary-light: #062b58;
  --accent: #3481d3;
  
  /* NEUTRAL COLORS */
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  
  /* DARK MODE */
  --dark-bg: #0B1220;
  --dark-card: #111827;
  --dark-border: #1F2937;
  --dark-text-primary: #F9FAFB;
  --dark-text-secondary: #CBD5E1;
  
  /* TYPOGRAPHY */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --line-height: 1.6;
  
  /* SPACING */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* SHADOWS */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* BORDER RADIUS */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Z-INDEX */
  --z-dropdown: 100;
  --z-modal: 1000;
}

/* ========== DARK MODE DISABLED - LIGHT MODE ONLY ========== */
/* Dark mode has been disabled. Website uses light theme only. */

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

/* HERO H1 OVERRIDE - MUST BE AFTER GENERIC H1 */
.hero .container h1,
.hero h1 {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  color: white !important;
  margin-bottom: 0px !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-light);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========== ANIMATION ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background-color: var(--bg);
  transform: scale(1.05);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  animation: fadeIn 0.6s ease-out;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-lg);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.hero-cta .btn {
  min-width: 160px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.trust-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.trust-indicator::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
  display: none;
}

.trust-indicator:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 44px;
  padding: 0 var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  justify-content: center;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover:not(:disabled) {
  background-color: #27AE60;
  transform: translateY(-1px);
}

.btn-small {
  height: 36px;
  padding: 0 var(--spacing-md);
  font-size: 0.9rem;
}

/* ========== GRID LAYOUT ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========== CARDS ========== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-header {
  margin-bottom: var(--spacing-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--card);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.1);
}

input::placeholder {
  color: var(--text-secondary);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== UPLOAD AREA ========== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: var(--bg);
}

.upload-area:hover {
  border-color: var(--primary);
  background-color: rgba(31, 58, 95, 0.02);
}

.upload-area.dragover {
  border-color: var(--accent);
  background-color: rgba(46, 204, 113, 0.05);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.upload-text {
  margin-bottom: var(--spacing-sm);
}

.upload-text strong {
  color: var(--primary);
}

.upload-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* ========== ALERTS & MESSAGES ========== */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--accent);
  color: #27AE60;
}

.alert-error {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid #E74C3C;
  color: #C0392B;
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border: 1px solid #3498DB;
  color: #2980B9;
}

.alert-warning {
  background-color: rgba(241, 196, 15, 0.1);
  border: 1px solid #F39C12;
  color: #D68910;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

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

.footer-section h4 {
  margin-bottom: var(--spacing-md);
}

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

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive footer centering */
@media (max-width: 768px) {
  .footer-bottom {
    text-align: center;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .footer-bottom a {
    display: block;
    margin-top: var(--spacing-xs);
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* ========== SECTIONS ========== */
section {
  padding: var(--spacing-2xl) 0;
}

section:nth-child(even) {
  background-color: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== COOKIE NOTICE ========== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--spacing-md);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-notice.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cookie-text a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 var(--spacing-lg);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  nav {
    gap: var(--spacing-md);
    font-size: 0.9rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .hero {
    padding: var(--spacing-md) var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .hero h1 {
    font-size: 2rem !important;
    margin-bottom: var(--spacing-xs) !important;
    font-weight: 900 !important;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
  }

  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

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

  .ad-container {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
  }

  .ad-placeholder {
    min-height: 300px;
  }

  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
  }

  .trust-indicators {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }

  .trust-indicator {
    flex: 0 1 45%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  h4 {
    font-size: 1.05rem;
  }

  nav a {
    display: none;
  }

  .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .hero {
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  .hero h1 {
    font-size: 1.8rem !important;
    margin-bottom: var(--spacing-xs) !important;
    font-weight: 900 !important;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .trust-indicators {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .trust-indicator {
    flex: 1;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .ad-placeholder {
    min-height: 280px;
  }

  .ad-container {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
  }

  .form-group {
    margin-bottom: var(--spacing-md);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  nav a {
    display: none;
  }

  .btn {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 0.9rem;
  }

  .hero {
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
  }

  .hero h1 {
    font-size: 1.6rem !important;
    margin-bottom: var(--spacing-xs) !important;
    font-weight: 900 !important;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .trust-indicators {
    gap: var(--spacing-sm);
  }

  .trust-indicator {
    font-size: 0.85rem;
    padding: var(--spacing-sm);
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .header-content {
    padding: var(--spacing-sm) 0;
  }

  .logo span {
    font-size: 1.3rem;
  }

  .ad-container {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
  }

  .ad-placeholder {
    min-height: 250px;
    min-width: 100%;
  }

  .ad-label {
    font-size: 0.7rem;
  }

  .form-group {
    margin-bottom: var(--spacing-md);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 16px;
  }

  footer .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .footer-section {
    text-align: center;
  }
}

/* ========== ADS STYLING ========== */
.ad-container {
  margin: 0px !important;
  padding: 0px !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-align: center;
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 0.75rem;
  color: transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0px !important;
  display: none !important;
}

/* Prevent layout shift for ads */
.ad-placeholder {
  background-color: transparent !important;
  border-radius: 0 !important;
  min-height: 0px !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Responsive ad sizes */
.adsbygoogle {
  display: block;
  margin: auto;
}

/* Mobile optimized ads */
@media (max-width: 768px) {
  .ad-container {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
  }

  .ad-placeholder {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .ad-container {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-sm);
    background-color: #f9f9f9;
  }

  .ad-placeholder {
    min-height: 280px;
    background-color: #fff;
  }

  .adsbygoogle {
    display: inline-block;
    width: 100%;
    max-width: 100%;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.hidden {
  display: none;
}

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

/* ========== TOOL PAGE RESPONSIVE GRID ========== */
/* Main grid layout for tool pages */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-lg);
}

main {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
aside {
  width: 300px;
}

/* Responsive grid for tool pages */
@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: 1fr 250px;
  }
  
  main {
    flex: 1;
  }
  
  aside {
    width: 250px;
  }
}

@media (max-width: 768px) {
  /* Tool page layout: stack main and sidebar */
  .tool-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  div[style*="grid-template-columns: 1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
  
  aside {
    width: 100%;
    margin-top: var(--spacing-lg);
  }
  
  .ad-container {
    margin: var(--spacing-md) 0;
  }
  
  /* Result preview grid */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
}

@media (max-width: 600px) {
  aside {
    width: 100%;
  }
  
  main {
    flex: 1;
  }
  
  .upload-area {
    min-height: 180px;
    padding: var(--spacing-md);
  }
  
  .upload-icon {
    font-size: 3rem;
  }
  
  .upload-text strong {
    font-size: 1rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  aside {
    width: 100%;
  }
  
  .upload-area {
    min-height: 160px;
    padding: var(--spacing-md);
  }
  
  .upload-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .upload-text {
    font-size: 0.9rem;
  }
  
  .upload-info {
    font-size: 0.75rem;
  }
  
  .ad-placeholder {
    min-height: 280px;
  }
}

/* ========== HOMEPAGE MOBILE ENHANCEMENTS ========== */
@media (max-width: 767px) {
  .hero {
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }
  
  .trust-indicator {
    padding: var(--spacing-md);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  
  .section-title {
    margin-bottom: var(--spacing-lg);
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  
  .card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .card-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--spacing-md);
    text-align: center;
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero h1 {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-cta .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
  }
  
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
  }
  
  .trust-indicator {
    padding: var(--spacing-sm);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    text-align: center;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }
  
  .section-title h2 {
    font-size: 1.35rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .card {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    user-select: none;
  }
  
  .card:active {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-description {
    font-size: 0.85rem;
  }
  
  .card-footer {
    font-size: 0.85rem;
  }
  
  .ad-container {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-sm);
  }
}
