/* Profile Page - Dark Theme matching Framez App */
body {
  background: #000 !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

/* Location Suggestions */
#location-suggestions {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#location-suggestions .list-group-item {
  transition: background 0.2s ease;
}

#location-suggestions .list-group-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#location-suggestions .list-group-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#selected-location {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
}
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header-new {
  background: #000;
  padding-bottom: 1rem;
}

/* Posts Grid - Instagram-like 3 columns */
#posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
  margin: 0;
}

#posts-grid .col-4,
#posts-grid > div {
  padding: 0;
  margin: 0;
}

#posts-grid .post-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  width: 100%;
}

#posts-grid .post-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#posts-grid .post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Repost Overlay - Similar to Framez Picks on home page */
.repost-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.repost-overlay:hover {
  background: linear-gradient(to top, rgba(102, 126, 234, 0.9), rgba(102, 126, 234, 0.5), transparent);
  color: #fff;
  text-decoration: none;
}

.repost-overlay i {
  font-size: 0.85rem;
  color: #fff;
}

.repost-overlay .repost-avatar {
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #fff;
  flex-shrink: 0;
}

.repost-name {
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
}

/* Bouts Grid */
#bouts-grid .bout-item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

#bouts-grid .bout-item:hover {
  transform: translateY(-4px);
}

#bouts-grid .bout-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#bouts-grid .bout-info {
  padding: 1rem;
}

#bouts-grid .bout-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

#bouts-grid .bout-meta {
  font-size: 0.85rem;
  color: #999;
}

/* Tab Styling */
.nav-pills .nav-link {
  transition: all 0.3s;
}

.nav-pills .nav-link:hover {
  color: #fff !important;
  border-bottom-color: #fff !important;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Loading */
.spinner-border {
  border-color: #333;
  border-right-color: #fff;
}

/* Dropdown menu styles */
.dropdown-menu {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.dropdown-item {
  color: #fff !important;
  background: transparent !important;
  }

.dropdown-item:hover,
.dropdown-item:focus {
  background: #667eea !important;
  color: #fff !important;
  }

.dropdown-divider {
  border-color: #333 !important;
  }

/* Responsive */
@media (max-width: 768px) {
  #posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
}

@media (max-width: 576px) {
  .profile-header-new h2 {
    font-size: 1.3rem !important;
  }
  
  .profile-header-new #user-score {
    font-size: 2.5rem !important;
  }
}

/* Censored Post Overlay */
.post-item {
  position: relative;
}

.censor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  border: 2px solid #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.censor-message {
  text-align: center;
  padding: 20px;
  color: #fff;
}

.censor-message i {
  color: #667eea;
}

.censor-message p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.censored-post {
  border: 2px solid #667eea;
  border-radius: 12px;
}

/* Bout Post Styles */
.bout-post {
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.bout-post:hover {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.bout-post .bout-badge {
  transition: all 0.3s ease;
}

.bout-post:hover .bout-badge {
  transform: scale(1.1);
}

/* Post Detail Modal */
#postDetailModal .modal-fullscreen .modal-content {
  border-radius: 0;
}

#postDetailModal .post-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#modal-post-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}

/* AI Review Widget */
.ai-review-widget {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #444;
  transition: border-color 0.3s ease;
}

.ai-review-widget.expanded {
  border-color: #667eea;
}

.ai-widget-header {
  padding: 15px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transition: background 0.3s ease;
}

.ai-widget-header:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.ai-widget-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-widget-inner {
  padding: 20px;
}

/* AI Review Loading */
.ai-loading {
  text-align: center;
  padding: 40px 20px;
}

.ai-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-loading-dots span {
  width: 10px;
  height: 10px;
  background: #667eea;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* AI Feedback Display */
.ai-feedback {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.ai-feedback h6 {
  color: #667eea;
  margin-bottom: 15px;
}

.ai-feedback p {
  line-height: 1.8;
  color: #e0e0e0;
}

/* Payment Plans */
.payment-plan-card {
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-plan-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.payment-plan-card.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.payment-plan-card .plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.payment-plan-card .plan-details {
  color: #ccc;
  font-size: 0.9rem;
}
