/* ReadAndGone - Consolidated Styles */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Variables */
:root {
  --bg: #fff;
  --muted: #666;
}

/* Header menu bar */
.header-menu {
  width: 100%;
  padding: 0;
  color: #1f1f1f;
  font-size: 14px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  line-height: 48px;
  height: 48px;
  font-family: 'Inter', sans-serif;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.header-left,
.header-right {
  display: flex;
  gap: 27px;
  align-items: center;
}

.header-menu a {
  color: #1f1f1f;
  text-decoration: none;
  display: inline-block;
}

.header-menu a:hover {
  text-decoration: none;
  cursor: pointer;
}

.header-menu a:visited {
  color: #1f1f1f;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ea4335;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 48px;
  font-family: 'Inter', sans-serif;
}

/* Main content area - full width with centered content */
main.center-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 24px 0;
  box-sizing: border-box;
}

/* Container for secondary pages */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Wider container for About page */
.container.wide {
  max-width: 700px;
}

/* Brand/Header */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.brand.page-header {
  margin-bottom: 32px;
  margin-top: 40px;
}

.logo-img {
  width: 450px;
  height: auto;
  display: block;
  max-width: none;
  margin-left: -40px;
  margin-bottom: 24px;
}

h1 {
  font-size: 34px;
  margin: 0;
  color: #202124;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.8px;
  font-family: 'Inter', sans-serif;
}

/* Subtitle */
.subtitle {
  margin-top: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  max-width: 90%;
}

/* Textarea - matches Google's 584px input + padding = 688px total */
textarea {
  width: 584px;
  min-height: 300px;
  box-sizing: content-box;
  padding: 14px 52px 14px 52px;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  border-radius: 0;
  border: 1px solid #dfe1e5;
  resize: vertical;
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  background-color: #fff;
}

textarea:hover {
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

textarea:focus {
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

textarea.error {
  border-color: #ea4335;
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.1);
}

textarea.success {
  border-color: #34a853;
  box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.1);
}

textarea.loading {
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

textarea::placeholder {
  color: #999;
  transition: color 0.2s;
  opacity: 1;
}

textarea.error::placeholder {
  color: #ea4335;
  opacity: 1;
}

textarea.success::placeholder {
  color: #34a853;
  opacity: 1;
}

textarea.loading::placeholder {
  color: #4285f4;
  opacity: 1;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  width: 688px;
}

.paid-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.paid-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}

.google-btn {
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid #f8f9fa;
  background-color: #f8f9fa;
  color: #3c4043;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  min-width: 200px;
}

.google-btn:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,.24);
  border-color: #dadce0;
  background-color: #f8f9fa;
}

.google-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

.blue {
  background-color: #4285f4;
  color: #fff;
  border: 1px solid #4285f4;
}

.blue:hover {
  background-color: #3367D6;
  border-color: #3367D6;
}

.red {
  background-color: #ea4335;
  color: #fff;
  border: 1px solid #ea4335;
}

.red:hover {
  background-color: #d33426;
  border-color: #d33426;
}

/* Message area */
.message-area {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #dfe1e5;
  border-radius: 0;
  min-height: 300px;
  width: 688px;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  background-color: #fff;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  overflow: auto;
  box-sizing: border-box;
  resize: vertical;
}

.message-area:empty {
  display: none;
}

.message-area.error-text {
  color: #ea4335;
  background-color: #fff;
  border-color: #ea4335;
}

.message-area.read-page {
  min-height: 300px;
  resize: vertical;
}

/* Content boxes for secondary pages */
.content-box {
  width: 688px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 0;
  padding: 32px;
  box-sizing: border-box;
  text-align: left;
  margin-bottom: 60px;
}

.content-box.wide {
  padding: 40px;
}

.content-box.no-margin {
  margin-bottom: 0;
}

.content-box h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #111;
  font-weight: 600;
}

.content-box h2.large {
  font-size: 28px;
  margin-bottom: 16px;
  color: #202124;
}

.content-box h2.center {
  text-align: center;
}

.content-box h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #202124;
  font-weight: 600;
}

.content-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
}

.content-box ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-box li {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 8px;
}

/* Form styles */
.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  font-size: 16px;
  border-radius: 0;
  border: 1px solid #dcdcdc;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px 26px;
  background: #4285F4;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #3367D6;
}

.submit-btn:active {
  transform: translateY(1px);
}

#response {
  margin-top: 16px;
  padding: 12px;
  border-radius: 0;
  text-align: center;
  font-size: 15px;
  display: none;
}

#response.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

#response.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* Footer - Google style with floats */
.footer {
  width: 100%;
  padding: 0;
  background-color: #f2f2f2;
  color: #1f1f1f;
  font-size: 14px;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  line-height: 48px;
  height: 48px;
  border-top: 1px solid #e4e4e4;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  display: block;
  width: 100%;
  position: relative;
}

.footer-left {
  float: left;
  padding-left: 27px;
}

.footer-right {
  float: right;
  padding-right: 27px;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.footer a {
  color: #1f1f1f;
  text-decoration: none;
  display: inline-block;
}

.footer a:hover {
  text-decoration: none;
  cursor: pointer;
}

.footer a:visited {
  color: #1f1f1f;
}

/* In-content links (not in header/footer) */
.content-box a,
.content-note a {
  color: #1f1f1f;
  text-decoration: none;
}

.content-box a:hover,
.content-note a:hover {
  text-decoration: none;
  cursor: pointer;
}

.content-box a:visited,
.content-note a:visited {
  color: #1f1f1f;
}

/* Content note under forms */
.content-note {
  margin-top: 20px;
  font-size: 15px;
  color: #5f6368;
  text-align: center;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.comparison-table th {
  padding: 16px;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dcdcdc;
  font-weight: 600;
  text-align: center;
}

.comparison-table th.feature-col {
  text-align: left;
  width: 40%;
}

.comparison-table th.premium {
  background-color: #4285f4;
  color: white;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 500;
}

.comparison-table td.check {
  color: #34a853;
  font-size: 20px;
  font-weight: bold;
}

.comparison-table td.unavailable {
  color: #ea4335;
  font-size: 20px;
}

.comparison-table td.feature-desc {
  color: #5f6368;
  font-size: 14px;
}

.comparison-table td.premium-highlight {
  color: #4285f4;
  font-weight: 600;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid #e0e0e0;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #5f6368;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: #202124;
}

.auth-tab.active {
  color: #4285f4;
  border-bottom-color: #4285f4;
}

.auth-form {
  padding: 20px 0;
}
.date-stamp {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 24px;
  font-style: italic;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  textarea {
    width: calc(100vw - 140px);
    max-width: 584px;
  }
  
  .controls,
  .message-area,
  .content-box {
    width: calc(100vw - 32px);
    max-width: 688px;
  }
  
  main.center-screen,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .footer-left {
    float: none;
    display: block;
    padding-left: 16px;
  }
  
  .footer-right {
    float: none;
    display: block;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  .logo-img { width: 200px; }
  textarea { 
    min-height: 100px;
    padding: 14px 20px;
  }
  .buttons { flex-direction: column; width: 100%; }
  .google-btn { width: 100%; }
  .content-box.wide { padding: 28px 24px; }
  .content-box h2.large { font-size: 24px; }
}