/* encuentros.css - Main stylesheet for encuentros.red */

:root {
  --primary-color: #e94057;
  --secondary-color: #8a2387;
  --tertiary-color: #f27121;
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --gray-color: #6c757d;
  --gray-light-color: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Base styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-color);
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Button styles */
.btn {
  border-radius: var(--border-radius);
  padding: 10px 20px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 64, 87, 0.3);
}

.btn-secondary {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--gray-light-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 12px 25px;
  font-size: 1rem;
}

.btn-sm {
  padding: 6px 15px;
  font-size: 0.75rem;
}

/* Navbar styles */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 8px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-light .navbar-toggler {
  border-color: transparent;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 100px 0;
  text-align: center;
  color: white;
  border-radius: 0 0 50% 50% / 15%;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Card styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--gray-light-color);
  padding: 20px;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 15px;
}

.card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Form styles */
.form-control {
  border-radius: var(--border-radius);
  padding: 12px 15px;
  border: 1px solid var(--gray-light-color);
  font-size: 1rem;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(233, 64, 87, 0.1);
  border-color: var(--primary-color);
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
}

.form-text {
  color: var(--gray-color);
}

/* Auth pages (login & signup) */
.auth-card {
  max-width: 500px;
  margin: 40px auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.auth-card .card-header {
  padding: 25px 20px;
  text-align: center;
}

.auth-card .card-body {
  padding: 30px;
}

.auth-card .form-control {
  background-color: var(--light-color);
}

.password-field-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--gray-color);
  cursor: pointer;
}

.password-strength-meter {
  height: 5px;
  background-color: var(--gray-light-color);
  border-radius: 5px;
  overflow: hidden;
}

.password-strength-meter-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
  font-size: 0.75rem;
  margin-top: 5px;
  text-align: right;
}

/* Profile cards */
.profile-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: white;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.profile-card-body {
  padding: 20px;
}

.profile-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.profile-age-location {
  font-size: 1rem;
  color: var(--gray-color);
}

.online-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.online-status.online {
  background-color: var(--success-color);
}

.online-status.offline {
  background-color: var(--gray-color);
}

/* Features section */
.features-section {
  padding: 80px 0;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.75rem;
}

/* Testimonials */
.testimonial-card {
  padding: 30px;
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid white;
  box-shadow: var(--box-shadow);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.social-media-links {
  display: flex;
  gap: 15px;
}

.social-media-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background-color 0.3s ease;
}

.social-media-links a:hover {
  background-color: var(--primary-color);
}

/* User profile */
.profile-header {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: var(--box-shadow);
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-color);
}

/* Animations */
.animated-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 70px 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Miscellaneous */
.badge-online {
  background-color: var(--success-color);
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
}

.verified-badge {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-left: 5px;
}

.premium-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 5px;
}

/* Messaging */
.message-list {
  max-height: 400px;
  overflow-y: auto;
}

.message-item {
  display: flex;
  margin-bottom: 15px;
}

.message-bubble {
  padding: 12px 15px;
  border-radius: 18px;
  max-width: 70%;
}

.message-sent {
  justify-content: flex-end;
}

.message-sent .message-bubble {
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
  background-color: var(--light-color);
  color: var(--dark-color);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 5px;
  color: var(--gray-color);
}

/* Add this CSS to your encuentros.css file */
.post-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.post-avatar-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

/* Ensure post card header has proper alignment */
.post-card .card-header .d-flex {
    align-items: center;
}

/* Fix spacing in post header */
.post-card .card-header {
    padding: 12px 15px;
}