/* styles.css - Modern colorful responsive diary */
:root{
  --accent:#ff6b6b;
  --accent-2:#6b8cff;
  --bg:#f0f4f8;
  --card:#ffffff;
  --muted:#666;
  --border:#e0e4e8;
  --success:#28a745;
  --error:#dc3545;
}

*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,system-ui,Arial,sans-serif;}

body{background:var(--bg);color:#222;line-height:1.6;}
.container{max-width:920px;margin:0 auto;padding:20px;}

.site-header{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  padding:16px 0;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.site-header h1{font-size:24px;font-weight:700;}
.site-header nav a{
  color:#fff;
  margin-left:14px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}
.site-header nav a:hover{opacity:0.85;transform:translateY(-2px);}

.card, .login-card{
  background:var(--card);
  padding:22px;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(20,20,40,0.06);
  margin-bottom:20px;
}

input[type=text], input[type=password], textarea{
  width:100%;
  padding:12px;
  border-radius:8px;
  border:1px solid var(--border);
  margin-bottom:14px;
  font-size:15px;
}

.btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  transition:0.3s;
}
.btn:hover{
  background:var(--accent-2);
  transform:translateY(-2px);
}

.posts{margin-top:25px;}
.post{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:16px;
  border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,0.95),rgba(255,255,255,0.85));
  border:1px solid var(--border);
}
.post h2{margin:0;font-size:18px;color:var(--accent-2);}
.post .meta{color:var(--muted);font-size:13px;margin-top:6px;}
.preview p{margin:8px 0 0;}
.thumb img{
  max-width:120px;
  max-height:90px;
  border-radius:10px;
  object-fit:cover;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.post-single .post-image img{
  width:100%;
  border-radius:12px;
  margin:12px 0;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.error{color:var(--error);font-weight:600;}
.success{color:var(--success);font-weight:600;}

/* Responsive */
@media(max-width:700px){
  .post{flex-direction:column;}
  .site-header .container{flex-direction:column;align-items:flex-start;gap:10px;}
  .thumb img{max-width:100%;height:auto;}
  input[type=text], textarea{font-size:14px;}
}
