/* ================================================= */
/* === MASTER STYLESHEET for litigio.net Projects === */
/* ================================================= */

/* === Root Variables & Global Styles === */
:root {
  --background-color: #f7f8fa;
  --card-background: #ffffff;
  --primary-text: #2d3748;
  --secondary-text: #718096;
  --brand-color: #0a2240; /* Prussian Blue */
  --brand-color-hover: #1e3a5f;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --light-blue-bg: #edf2f7;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-text);
  line-height: 1.6;
}

/* === SHARED LAYOUT COMPONENTS === */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 100vh;
  box-sizing: border-box;
  justify-content: space-between;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

.main-card {
  width: 100%;
  max-width: 800px; /* Use the wider card for both for consistency */
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

/* ================================== */
/* === LANDING PAGE-ONLY STYLES === */
/* ================================== */

/* This new class will center all the content inside it */
.landing-card {
  text-align: center;
}

/* Make the logo bigger, but only on the landing page */
.landing-card .logo {
  width: 140px;
  height: 140px;
  margin-bottom: -0.5rem;
}

/* Adjust the landing page h1 to be bigger again */
.landing-card .header h1 {
  font-size: 2rem;
}

/* === HEADER & LOGO (for both pages) === */
.header {
  text-align: center;
}

.logo {
  width: 120px;
  height: 120px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.logo-link:hover {
  transform: scale(1.05); 
  opacity: 0.9;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

/* === Landing Page Specific === */
.tagline {
  color: var(--secondary-text);
  font-size: 1.1rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--brand-color);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.cta-button:hover { background-color: var(--brand-color-hover); transform: translateY(-2px); }
.cta-button svg { width: 20px; height: 20px; }


/* === Application Page Specific === */
textarea {
  width: 100%; min-height: 120px; border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; font-family: 'Inter', sans-serif; font-size: 1rem; resize: vertical; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus { outline: none; border-color: var(--brand-color); box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2); }
.submit-button { display: flex; align-items: center; justify-content: center; width: 100%; background-color: var(--brand-color); color: white; border: none; padding: 0.85rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; margin-top: 1rem; }
.submit-button:hover:not(:disabled) { background-color: var(--brand-color-hover); }
.submit-button:disabled { background-color: #a0aec0; cursor: not-allowed; }
.loader { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-container { margin-top: 2.5rem; }
.disclaimer { font-size: 0.8rem; color: var(--secondary-text); text-align: center; margin-bottom: 1.5rem; padding: 0.75rem; background-color: var(--light-blue-bg); border-radius: 6px; }
#result-output { min-height: 150px; overflow-y: auto; text-align: left;}
#citations-container { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
#citations-container h4 { margin: 0 0 1rem 0; font-weight: 600; color: var(--primary-text); }
#citations-container ul { list-style-type: none; padding: 0; margin: 0; font-size: 0.875rem; }
#citations-container li { margin-bottom: 0.5rem; }
#citations-container a { color: var(--brand-color); text-decoration: none; transition: text-decoration 0.2s; }
#citations-container a:hover { text-decoration: underline; }
#result-output sup a { color: var(--brand-color); text-decoration: none; font-weight: 600; }
#result-output sup a:hover { text-decoration: underline; }
.result-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.feedback-button, .copy-button { background: none; border: 1px solid var(--border-color); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.feedback-button:hover, .copy-button:hover { background-color: var(--light-blue-bg); }
.feedback-button.active { background-color: #dbeafe; border-color: #2b6cb0; }
.feedback-button svg { width: 18px; height: 18px; fill: #4a5568; }
.copy-button { margin-left: auto; border-radius: 6px; width: auto; padding: 0 1rem; }
.suggestions-container { margin-top: 2rem; }
.suggestions-container h3 { font-size: 1rem; font-weight: 600; color: var(--secondary-text); margin-bottom: 0.75rem; }
.suggestions-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.suggestion-item { background-color: var(--light-blue-bg); color: var(--brand-color); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
.suggestion-item:hover { background-color: #c3dafe; }


/* === RESPONSIVE FOOTER === */
.footer-container {
  display: flex; 
  flex-direction: column; /* Mobile-first: stack items vertically */
  align-items: center;
  gap: 0.75rem; 
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--secondary-text);
}
.footer-container p { margin: 0; }
.footer-links a { color: var(--primary-text); text-decoration: none; font-weight: 500; margin: 0 0.5rem; }
.footer-links a:hover { text-decoration: underline; }


/* === STATIC CONTENT PAGES === */
.static-page-card { text-align: left; padding: 2.5rem 3.5rem; }
.static-page-card h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; text-align: left;}
.static-page-card h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.static-page-card p { margin-bottom: 1rem; line-height: 1.7; }
.static-page-card ul { padding-left: 20px; margin-bottom: 1rem; }


/* ============================================================= */
/* === RESPONSIVE STYLES (MUST BE AT THE END OF THE FILE) === */
/* ============================================================= */

/* --- Mobile First Styles (Default) --- */

/* By default (for mobile), hide the desktop-specific text */
.cta-button .desktop-text {
  display: none;
}


/* --- Tablet & Desktop Styles --- */
@media (min-width: 601px) {
  
  /* Show the desktop text on wider screens */
  .cta-button .desktop-text {
    display: inline;
  }
  
  /* And HIDE the mobile text on wider screens */
  .cta-button .mobile-text {
    display: none;
  }
  
  /* Arrange footer items horizontally on desktop */
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Small Mobile Screen Adjustments --- */
@media (max-width: 600px) {
  .main-card, .static-page-card {
    padding: 2rem 1.5rem;
  }
  .header h1 {
    font-size: 1.5rem;
  }
}
