/* ══════════════════════════════════════════
   twttr - Original 2006 Style
   Grünes Blob-Logo, minimalistisch, roh
   ══════════════════════════════════════════ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

a {
  color: #5eab1f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #3d7a0a;
}

/* Container */
#container {
  width: 520px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ── Header ── */
#header {
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #87C540;
}

#header h1 {
  font-size: 42px;
  font-weight: bold;
  letter-spacing: -2px;
  font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
}

#header h1 a {
  color: #fff;
  text-decoration: none;
  background: #87C540;
  padding: 2px 12px 6px;
  border-radius: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  /* blob/bubble look */
  -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  background: linear-gradient(to bottom, #a3d65c 0%, #6db320 100%);
}

#header h1 a:hover {
  text-decoration: none;
  background: linear-gradient(to bottom, #b0de72 0%, #7dc430 100%);
}

.tagline {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

#nav {
  margin-top: 8px;
  font-size: 12px;
}

#nav a {
  color: #5eab1f;
  font-weight: bold;
}

.nav-user {
  float: right;
  color: #999;
  font-size: 11px;
}

/* ── Flash Messages ── */
.flash {
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 10px;
  border: 1px solid;
  border-radius: 3px;
}

.flash.success {
  background: #f0f9e8;
  color: #3d7a0a;
  border-color: #b3d98a;
}

.flash.error {
  background: #fce6e6;
  color: #cc3333;
  border-color: #f5b3b3;
}

/* ── Content ── */
#content {
  padding: 5px 0;
  min-height: 300px;
}

/* ── Footer ── */
#footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 10px;
  color: #bbb;
}

.footer-links {
  margin-top: 3px;
}

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: #5eab1f;
}

/* ══════════════════
   Home / Hero
   ══════════════════ */

.hero-box {
  margin-bottom: 20px;
}

.hero-box h2 {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
}

.hero-box p {
  font-size: 12px;
  color: #666;
}

.hero-cta {
  margin-top: 12px;
}

.big-button {
  display: inline-block;
  background: #87C540;
  background: linear-gradient(to bottom, #a3d65c, #6db320);
  color: #fff !important;
  text-decoration: none !important;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #5a9a18;
}

.big-button:hover {
  background: #6db320;
  text-decoration: none !important;
}

/* ══════════════════
   Timeline Layout
   ══════════════════ */

#timeline-page,
#profile-page {
  display: flex;
  gap: 20px;
}

.sidebar {
  width: 170px;
  flex-shrink: 0;
}

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

/* ── Sidebar ── */

.sidebar-box {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 10px;
  margin-bottom: 10px;
}

.user-card {
  text-align: center;
}

.avatar-big {
  width: 48px;
  height: 48px;
  background: #87C540;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  line-height: 48px;
  text-align: center;
  border-radius: 4px;
  margin: 0 auto 6px;
}

img.avatar-big {
  object-fit: cover;
  line-height: normal;
}

img.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
}

.user-card h3 {
  font-size: 13px;
  margin-bottom: 2px;
}

.user-card h3 a {
  color: #5eab1f;
}

.user-bio {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.user-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid #e5e5e5;
}

.stat {
  text-align: center;
}

.stat a {
  text-decoration: none;
  color: inherit;
}

.stat a:hover .stat-num {
  color: #5eab1f;
}

.stat-num {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  display: block;
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
}

.follow-action {
  margin-top: 8px;
}

.member-since {
  margin-top: 8px;
  font-size: 10px;
  color: #ccc;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-follow,
input[type="submit"].btn-follow {
  background: #87C540;
  background: linear-gradient(to bottom, #a3d65c, #6db320);
  color: #fff;
  border-color: #5a9a18;
}

.btn-follow:hover {
  background: #6db320;
}

.btn-unfollow,
input[type="submit"].btn-unfollow {
  background: #f5f5f5;
  color: #666;
  border-color: #ccc;
}

.btn-unfollow:hover {
  color: #c33;
  border-color: #c33;
}

.btn-edit {
  display: block;
  text-align: center;
  margin-top: 6px;
  background: #f5f5f5;
  color: #666;
  border-color: #ccc;
}

/* ── Tweet Form ── */

.tweet-form-box {
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 12px;
}

.tweet-form-box h2 {
  font-size: 13px;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
}

.tweet-form-box textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  font-family: "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
  font-size: 13px;
  resize: none;
}

.tweet-form-box textarea:focus {
  outline: none;
  border-color: #87C540;
}

.tweet-form-footer {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#char-count {
  font-size: 16px;
  font-weight: bold;
  color: #ccc;
}

.submit-btn {
  background: #87C540;
  background: linear-gradient(to bottom, #a3d65c, #6db320);
  color: #fff;
  border: 1px solid #5a9a18;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:hover {
  background: #6db320;
}

/* ══════════════════
   Tweet List
   ══════════════════ */

.tweet {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.tweet:last-child {
  border-bottom: none;
}

.tweet-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  background: #ddd;
  color: #999;
  font-size: 14px;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
  border-radius: 3px;
}

.tweet-body {
  flex: 1;
  position: relative;
}

.tweet-author {
  font-weight: bold;
  color: #5eab1f;
  font-size: 12px;
}

.tweet-text {
  color: #333;
  word-wrap: break-word;
}

.tweet-time {
  display: inline;
  font-size: 10px;
  color: #bbb;
  margin-left: 4px;
}

.delete-form {
  display: inline;
}

.delete-btn {
  background: none;
  border: none;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}

.delete-btn:hover {
  color: #c33;
}

/* ── Empty State ── */

.empty-state {
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

.empty-state a {
  display: block;
  margin-top: 5px;
}

/* ── User List / Grid ── */

.user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.user-card-small {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 8px 10px;
  text-align: center;
  width: 100px;
}

.user-card-small .avatar-placeholder {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 28px;
  margin: 0 auto 4px;
}

.user-card-small a {
  font-size: 10px;
  font-weight: bold;
}

/* ══════════════════
   Auth Pages
   ══════════════════ */

#auth-page {
  display: flex;
  justify-content: center;
}

.auth-box {
  width: 320px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 20px;
}

.auth-box h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  margin-bottom: 2px;
}

.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  font-size: 13px;
}

.field input[type="text"]:focus,
.field input[type="password"]:focus {
  outline: none;
  border-color: #87C540;
}

.hint {
  display: block;
  font-size: 10px;
  color: #bbb;
  margin-top: 1px;
}

.auth-alt {
  margin-top: 12px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

/* ══════════════════
   Page Subtitles
   ══════════════════ */

.page-subtitle {
  color: #999;
  font-size: 11px;
  margin-bottom: 10px;
}

h2 {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

/* ══════════════════
   Legal Pages
   ══════════════════ */

.legal-page {
  max-width: 480px;
  font-size: 12px;
  color: #555;
  line-height: 1.7;
}

.legal-page h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.legal-page h3 {
  font-size: 12px;
  color: #333;
  margin-top: 12px;
  margin-bottom: 3px;
}

.legal-page p {
  margin-bottom: 6px;
}

.legal-page ul {
  margin: 4px 0 8px 18px;
}

.legal-page li {
  margin-bottom: 2px;
}

/* ══════════════════
   Mobile (< 560px)
   ══════════════════ */

@media (max-width: 560px) {
  #container {
    width: 100%;
    padding: 10px 12px;
  }

  #header h1 {
    font-size: 32px;
  }

  .nav-user {
    display: none;
  }

  /* Stack sidebar above content */
  #timeline-page,
  #profile-page {
    flex-direction: column;
    gap: 10px;
  }

  .sidebar {
    width: 100%;
  }

  .main-col {
    width: 100%;
  }

  /* Auth pages */
  .auth-box {
    width: 100%;
  }

  /* User grid */
  .user-card-small {
    width: calc(33% - 6px);
  }

  /* Legal pages */
  .legal-page {
    max-width: 100%;
  }
}
