@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* nav & footer styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav li a {
  text-decoration: none;
  color: #333;
}

/* main content */
.content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blogs {
  min-height: 400px;
}

.blogs h2 {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* user cards */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.user-card:hover::before {
  width: 8px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5em;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-info .title {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.user-info .title::before {
  display: none;
}

.user-info .snippet {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 8px;
  display: block;
}

.user-info .snippet::before {
  display: none;
}

.user-meta {
  font-size: 0.8em;
  color: #999;
}

.user-id {
  font-family: 'Courier New', monospace;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.user-arrow {
  color: #667eea;
  font-size: 1.2em;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.user-card:hover .user-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 15px;
  border: 2px dashed rgba(102, 126, 234, 0.3);
}

.empty-state i {
  font-size: 4em;
  color: #667eea;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 20px;
}

.add-first-user {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-first-user:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* footer */
footer {
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 0.9em;
}

/* form styles */
.create-blog form {
  max-width: 500px;
  margin: 0 auto;
}

.create-blog label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.create-blog input,
.create-blog textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

.create-blog input:focus,
.create-blog textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.create-blog button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.create-blog button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* details page */
.details {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.delete {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.operation-btn {
  margin-left: 20px;
}

button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* responsive design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .content {
    padding: 20px;
  }
  
  .blogs h2 {
    font-size: 2em;
  }
  
  .title {
    font-size: 1.2em;
  }
}

    