/* Retro Translate 2013 — authentic Web 2.0 Google styling */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  font-size: 13px;
}

.gt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.gt-header {
  background: #f1f1f1;
  border-bottom: 1px solid #e5e5e5;
}
.gt-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gt-logo {
  font-size: 28px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  letter-spacing: -1px;
}
.gt-header-translate {
  font-size: 26px;
  color: #666;
  font-weight: 300;
  margin-left: 2px;
}
.gt-header-year {
  font-size: 11px;
  color: #999;
  margin-left: auto;
  font-style: italic;
}

/* Tab bar */
.gt-tabbar {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}
.gt-tabbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 2px;
}
.gt-tab {
  padding: 8px 18px;
  font-size: 12px;
  cursor: default;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.gt-tab-active {
  color: #4285F4;
  border-bottom-color: #4285F4;
  font-weight: bold;
}
.gt-tab-disabled {
  color: #b0b0b0;
}

/* Container */
.gt-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px 30px;
  width: 100%;
  flex: 1;
}

/* Language bar */
.gt-langbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  background: #f8f8f8;
  border: 1px solid #dcdcdc;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  padding: 8px 10px;
}
.gt-langbar-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gt-select {
  padding: 5px 6px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  border: 1px solid #c6c6c6;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ffffff, #f3f3f3);
  color: #333;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
  max-width: 260px;
  cursor: pointer;
}
.gt-select:focus {
  outline: none;
  border-color: #4d90fe;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 3px rgba(77,144,254,0.4);
}
.gt-quicklinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gt-quicklink {
  color: #1155cc;
  font-size: 11px;
  text-decoration: none;
}
.gt-quicklink:hover { text-decoration: underline; }

.gt-swap {
  align-self: center;
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border: 1px solid #c6c6c6;
  border-radius: 2px;
  width: 30px;
  height: 28px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  margin-top: 2px;
}
.gt-swap:hover {
  background: linear-gradient(to bottom, #fff, #eee);
  border-color: #4d90fe;
  color: #4285F4;
}

/* Boxes */
.gt-boxes {
  display: flex;
  border: 1px solid #dcdcdc;
  background: #fff;
  min-height: 220px;
}
.gt-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gt-box-source {
  border-right: 1px solid #dcdcdc;
  background: #fff;
}
.gt-box-target {
  background: #f7f9fb;
}
.gt-box-inner {
  flex: 1;
  position: relative;
  padding: 12px;
  min-height: 160px;
}
.gt-textarea {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border: none;
  resize: none;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #202124;
  line-height: 1.4;
  outline: none;
  background: transparent;
}
.gt-textarea::placeholder {
  color: #aaa;
  font-size: 16px;
}
.gt-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: #999;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  padding: 3px;
}
.gt-clear:hover { color: #555; }

.gt-result {
  font-size: 18px;
  line-height: 1.4;
  color: #202124;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.gt-result-empty {
  color: #bbb;
}
.gt-error {
  color: #cc0000;
  font-size: 14px;
  background: #fef7f6;
  border: 1px solid #f3cfcf;
  padding: 8px 10px;
  border-radius: 2px;
}

/* Box footer */
.gt-box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-top: 1px solid #ececec;
  background: #fafafa;
  min-height: 30px;
}
.gt-box-target .gt-box-foot { background: #f0f3f6; }
.gt-box-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gt-tool {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.55;
  padding: 3px 5px;
  border-radius: 2px;
}
.gt-tool:hover { opacity: 1; background: rgba(0,0,0,0.05); }
.gt-copied {
  color: #34A853;
  font-size: 11px;
  font-weight: bold;
}
.gt-charcount {
  color: #999;
  font-size: 11px;
}

/* Shimmer */
.gt-shimmer { padding-top: 4px; }
.gt-shimmer-line {
  height: 16px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 400% 100%;
  animation: gt-shine 1.2s infinite linear;
}
.gt-shimmer-line.short { width: 60%; }
.gt-shimmer-status {
  color: #4285F4;
  font-size: 12px;
  margin-top: 6px;
}
@keyframes gt-shine {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Controls */
.gt-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gt-translate-btn {
  background: linear-gradient(to bottom, #4d90fe, #4285F4);
  border: 1px solid #3079ed;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 2px;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.gt-translate-btn:hover {
  background: linear-gradient(to bottom, #4787 f2, #357ae8);
  background: linear-gradient(to bottom, #357ae8, #2f6bd6);
  border-color: #2f5bb7;
}
.gt-translate-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.gt-auto {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.gt-hint {
  font-size: 11px;
  color: #aaa;
  margin-left: auto;
}

.gt-nostalgia {
  margin-top: 22px;
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  text-align: center;
}

/* Footer */
.gt-footer {
  background: #f1f1f1;
  border-top: 1px solid #e5e5e5;
  padding: 14px 16px;
  margin-top: auto;
}
.gt-footer-links {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.gt-footer-links a {
  color: #1155cc;
  text-decoration: none;
  font-size: 12px;
}
.gt-footer-links a:hover { text-decoration: underline; }
.gt-copyright {
  text-align: center;
  color: #999;
  font-size: 11px;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 640px) {
  .gt-boxes { flex-direction: column; }
  .gt-box-source { border-right: none; border-bottom: 1px solid #dcdcdc; }
  .gt-langbar { flex-direction: column; }
  .gt-swap { transform: rotate(90deg); align-self: center; }
  .gt-select { max-width: 100%; width: 100%; }
  .gt-header-year { display: none; }
  .gt-hint { display: none; }
  .gt-controls { gap: 10px; }
}