/* =========================
   Global
========================= */

:root{
  --bg1:#071426;
  --bg2:#0c1f36;
  --card:#0f223b;
  --tweet:#0b1c31;

  --text:#e6edf3;
  --muted:#8b9bb4;

  --accent:#4f8cff;
  --accent2:#1da1f2;

  --border:#1e3656;

  --radius:14px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
  color:var(--text);
}


/* =========================
   Layout
========================= */

.page{
  display:flex;
  justify-content:center;
  padding:60px 20px;
}

.container{
  width:1000px;
  max-width:100%;
  background:var(--card);
  border-radius:18px;
  padding:40px;
  box-shadow:0 25px 60px rgba(0,0,0,.45);

  display:flex;
  flex-direction:column;
}


/* =========================
   Header
========================= */

.header-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

h1{
  margin:0;
  font-size:28px;
  font-weight:700;
}

.logout-btn{
  padding:7px 14px;
  border-radius:999px;
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.35);
  color:#ff7b7b;
  font-weight:600;
}


/* =========================
   Profile chip
========================= */

.profile-chip{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 20px 0;
}

.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--border);
}

.muted{
  font-size:13px;
  color:var(--muted);
}


/* =========================
   Navigation
========================= */

.nav-links{
  display:flex;
  justify-content:center;   /* center horizontally */
  align-items:center;
  gap:16px;
  margin-bottom:25px;
}

.nav-links a{
  padding:8px 18px;
  border-radius:999px;
  background:rgba(79,140,255,.12);
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  transition:all .2s;
}

.nav-links a:hover{
  background:rgba(79,140,255,.22);
  transform:translateY(-1px);
}

/* =========================
   Tweet form
========================= */

form{
  margin-top:20px;
}

textarea{
  width:100%;
  height:110px;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#081521;
  color:var(--text);
  resize:none;
  font-size:14px;
}

textarea:focus{
  outline:none;
  border-color:var(--accent);
}

button{
  margin-top:10px;
  padding:10px 18px;
  border:none;
  border-radius:8px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:all .15s;
}

button:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}


/* =========================
   Tweets list
========================= */

.tweets-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:35px;
  margin-bottom:12px;
}

.tweet{
  display:flex;
  gap:14px;
  padding:16px;
  border-radius:12px;
  background:var(--tweet);
  margin-bottom:12px;
  border:1px solid rgba(255,255,255,.04);
  transition:all .15s;
}

.tweet:hover{
  background:#0d233d;
  transform:translateY(-1px);
}

.tweet img{
  width:50px;
  height:50px;
  border-radius:50%;
  object-fit:cover;
}

.tweet-content{
  flex:1;
}

.tweet-header{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  font-weight:600;
}

.tweet-text{
  margin-top:6px;
  font-size:14px;
  line-height:1.5;
}

.tweet-time{
  font-size:12px;
  color:var(--muted);
}


/* =========================
   Inputs
========================= */

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

label{
  font-size:13px;
  color:var(--muted);
}

input{
  padding:10px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#081521;
  color:var(--text);
}

input:focus{
  outline:none;
  border-color:var(--accent);
}


/* =========================
   Profile image
========================= */

.profile-img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--accent);
  margin-bottom:12px;
}
/* Reset some ugly defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #0f172a; /* dark navy */
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px;
}

/* Profile Card */
.profile-card {
  background: #1e293b;
  width: 500px;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
}

/* Profile Image */
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Name */
.profile-card h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

/* Username */
.username {
  color: #9ca3af;
  margin-bottom: 15px;
}

/* Bio */
.bio {
  font-size: 14px;
  margin-bottom: 20px;
  color: #cbd5f5;
}

/* Tweets Section */
.tweets {
  margin-top: 20px;
}

/* Tweet Card */
.tweet {
  background: #111827;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.tweet:hover {
  background: #1f2937;
  transform: scale(1.01);
}

/* Tweet Content */
.tweet-content {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Tweet Time */
.tweet-time {
  font-size: 12px;
  color: #9ca3af;
}