/*dom css */
body {
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

* {
    box-sizing: border-box;
}

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 40px 30px 20px;
    text-align: center;
    position: relative;
}

.card-content {
    padding: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.user-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

.user-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #4facfe;
}

.section h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.section li::before {
    content: "•";
    color: #4facfe;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.dislikes-section li::before {
    content: "•";
    color: #ff6b6b;
}

.social-links {
  text-align: center;
  margin-top: 20px;
  color: #fff;
}

.social-links h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links li {
  margin-bottom: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.social-links a:focus {
  outline: 3px solid #4facfe;
  outline-offset: 2px;
}

.social-links .icon {
  width: 20px;
  height: 20px;
  fill: white;
  margin-right: 8px;
  transition: fill 0.3s ease;
}


/* media queries*/
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .profile-card {
        margin: 0;
    }

    .card-header {
        padding: 30px 20px 15px;
    }

    .card-content {
        padding: 20px;
    }

    .user-name {
        font-size: 1.6rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section {
        padding: 20px;
    }

    .social-links ul {
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-name {
        font-size: 1.4rem;
    }

    .user-bio {
        font-size: 1rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }
}

/* datenow js class */
.time-update {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}