/* ============================================
   COMPONENTS - Forms, Tabs, Alerts, Upload
   ============================================ */

img.small{
    max-width:100px !important;
}

img.medium {
    max-width: 200px !important;
}

img.large {
    max-width: 300px !important;
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all var(--transition);
  width: 100%;
  font-size: 1rem;
  background: white;
  color: var(--primary);
}

/* Dark mode for form controls */
[data-theme="dark"] .form-control {
  background: #1a2332;
  color: #f8fafb;
  border-color: #2d3748;
}

[data-theme="dark"] .form-control::placeholder {
  color: #6b7280;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
  outline: none;
}

[data-theme="dark"] .form-control:focus {
  background: #0f1724;
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.2);
}

/* Disabled state */
.form-control:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

[data-theme="dark"] .form-control:disabled {
  background: #111827;
  color: #6b7280;
}

.invalid-feedback {
  display: block;
  color: var(--danger);
  font-size: 0.875em;
  margin-top: 0.5rem;
  margin-bottom: 8px;
}

.form-text {
  font-size: 0.85rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 6px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

[data-theme="dark"] .form-text {
  color: #9ca3af;
}

/* Select elements */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Checkboxes */
.form-check {
  margin-bottom: 16px;
  padding-left: 0 !important;
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  min-height: 24px;
}

.form-check-input {
  width: 24px;
  height: 24px;
  margin: 0 !important;
  margin-top: 2px !important;
  cursor: pointer;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  transition: all var(--transition);
  background-color: white;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="dark"] .form-check-input {
  background-color: #1a2332;
  border-color: #2d3748;
}

.form-check-input:hover {
  border-color: var(--accent);
  background-color: rgba(31, 182, 255, 0.05);
}

[data-theme="dark"] .form-check-input:hover {
  background-color: rgba(31, 182, 255, 0.15);
  border-color: var(--accent);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.form-check-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.15);
}

.form-check-input:checked:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.form-check-input:active {
  transform: scale(0.95);
}

.form-check-label {
  font-size: 0.95rem;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  padding-left: 0 !important;
}

[data-theme="dark"] .form-check-label {
  color: #f8fafb;
}

.form-check-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.form-check-label a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .form-check-input { width: 28px; height: 28px; }
  .form-check { gap: 14px; }
  .form-check-label { font-size: 1rem; }
}

@media (max-width: 576px) {
  .form-check-input { width: 30px; height: 30px; }
  .form-check { gap: 16px; padding: 8px 0 !important; }
}

/* Badge */
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

[data-theme="dark"] .badge {
    background: rgba(31, 182, 255, 0.2);
    border-color: rgba(31, 182, 255, 0.3);
}

/* ============================================
   TABS - Unified Tab Component
   ============================================ */

/* Tab Container */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  margin-top: 32px;
  border-bottom: 2px solid #e5e7eb;
}

[data-theme="dark"] .tabs {
  border-bottom-color: #2d3748;
}

/* Tab Buttons */
.tab-btn {
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--accent);
  background: rgba(31, 182, 255, 0.06);
  transform: translateY(-2px);
}

.tab-btn.active {
  color: #1fb6ff;
  border-bottom: 3px solid #1fb6ff;
  background: rgba(31, 182, 255, 0.08);
}

.tab-btn.active:hover {
  transform: translateY(0);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tab Content Group */
.tab-content-group {
  position: relative;
}

/* Mobile Responsive Tabs */
@media (max-width: 576px) {
  .tabs {
    gap: 4px;
    margin-top: 20px;
  }

  .tab-btn {
    padding: 10px;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }

  /* Hide text labels on mobile, show only icons */
  .tab-btn span {
    display: none;
  }
}

/* ============================================
   PROFILE HERO SECTION
   ============================================ */

/* Profile Hero Container */
.profile-hero { 
  border-radius: 0px 0px 30px 30px;
  overflow: hidden; 
  margin-bottom: 24px; 
  position: relative;
  box-shadow: var(--medium-shadow);
  height: 300px;
}

[data-theme="dark"] .profile-hero {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Cover Photo */
.profile-cover { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

/* Cover Photo Gradient Fallback */
.profile-cover--gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2332 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  font-weight: bold;
}

.profile-cover--gradient.Male {
  background: linear-gradient(135deg, #1a2332 0%, #0ea5e9 100%);
}

.profile-cover--gradient.Female {
  background: linear-gradient(135deg, #311a32 0%, #ec4899 100%);
}

.profile-cover--gradient span {
  line-height: 1;
}

/* Profile Avatar */
.profile-avatar { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  left:100px;
  width: 200px; 
  height: 200px; 
  border-radius: 10%; 
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  z-index: 10;
}

[data-theme="dark"] .profile-avatar {
  border-color: #1a2332;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Cover Photo Upload Button */
.upload-cover-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Profile Avatar Upload Button */
.upload-profile-btn {
  position: absolute;
  top: 190px;
  left: 230px;
  z-index:11;
}

/* Profile Avatar Container */
.profile-avatar-container {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: auto;
}

.profile-avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

/* Profile Avatar Gradient Fallback */
.profile-avatar--gradient {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100px;
  width: 200px;
  height: 200px;
  border-radius: 10%;
  background: linear-gradient(135deg, #1fb6ff 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  font-weight: bold;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

[data-theme="dark"] .profile-avatar--gradient {
  border-color: #1a2332;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-avatar--gradient.Male {
  background: linear-gradient(135deg, #1a2332dc 0%, #0ea5e9 100%);
}

.profile-avatar--gradient.Female {
  background: linear-gradient(135deg, #311a32 0%, #ec4899 100%);
}

.profile-avatar--gradient span {
  line-height: 1;
  position: absolute;
}

/* Profile Meta Section */
.profile-meta { 
  padding: 32px 40px 24px 40px;
  margin-bottom: 40px;
}

.profile-meta h2 {
  margin-bottom: 20px;
}

/* Profile Stats */
.profile-stats { 
  display: flex; 
  gap: 40px; 
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-stats .stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.profile-stats .stat i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* Profile Section */
.profile-section {
  max-width: 500px;
}

.profile-details i{
    color: var(--accent);
}

/* Responsive Profile Hero Styles */
@media (max-width: 768px) {
  .profile-hero {
    height: 250px;
  }
  
  .profile-avatar,
  .profile-avatar--gradient {
    width: 150px;
    height: 150px;
  }
  
  .profile-avatar--gradient {
    font-size: 3.5rem;
  }
  
  .profile-meta {
    padding: 24px 20px;
  }
  
  .profile-stats {
    gap: 24px;
  }

    .upload-profile-btn {
        top: 150px;
        left: 195px;
    }
}

@media (max-width: 576px) {
  .profile-hero {
    height: 200px;
  }
  
  .profile-avatar,
  .profile-avatar--gradient {
    width: 120px;
    height: 120px;
    left: 20px !important;
  }
  
  .profile-avatar--gradient {
    font-size: 3rem;
  }
  
  .profile-meta { 
    padding: 24px 0;
  }
  
  .profile-stats {
    gap: 20px;
    flex-direction: column;
  }
  
  .upload-cover-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    top: 12px;
    right: 12px;
  }

    .upload-profile-btn {
        top: 100px;
        left: 80px;
    }
}

/* ============================================
   UPLOAD AREAS
   ============================================ */

.upload-area {
  border: 2px dashed #e5e7eb;
  border-radius: var(--round);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card);
}

.upload-area:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(31,182,255,0.04) 0%, rgba(31,182,255,0.02) 100%);
}

.upload-area i {
  font-size: 3rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.upload-area p {
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 8px 0;
  font-size: 1rem;
}

.upload-area small {
  color: var(--text-secondary);
  display: block;
}

@media (max-width: 576px) {
  .upload-area { padding: 30px 16px; }
  .upload-area i { font-size: 2.5rem; }
  .upload-area p { font-size: 0.95rem; }
}

.ad-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ecf1 100%);
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-content {
  text-align: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.ad-content i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ad-content p {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  opacity: 0.7;
}

.ad-content small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 4px;
}

.ad-placeholder-small {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ecf1 100%);
  border: 2px dashed #d5d7db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-content-small {
  text-align: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.ad-content-small i {
  font-size: 2rem;
  display: block;
  opacity: 0.5;
}

.ad-content-small p {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 6px 0 0 0;
  opacity: 0.7;
}

/* ============================================
   GALLERY VIEWER
   ============================================ */


.imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.imageModalInner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.imageModalNav {
    position: fixed;
    
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

    .imageModalNav.Prev {
        left: 20px;
    }

    .imageModalNav.Next {
        left: auto !important;
        right: 20px !important;
    }

.imgModalImage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 80px 80px 20px 80px;
}

.imgModalImg {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.imgModalCaption {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.imgModalCounter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--primary-light), transparent);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

/* Notification list spacing */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card link wrapper */
.card-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.card-link:hover {
    transform: translateX(4px);
}

/* Unread notification styling */
.card--notification.unread {
    background: linear-gradient(135deg, rgba(31,182,255,0.08) 0%, rgba(31,182,255,0.04) 100%);
    border-left: 4px solid var(--accent);
}

[data-theme="dark"] .card--notification.unread {
    background: linear-gradient(135deg, rgba(31,182,255,0.15) 0%, rgba(31,182,255,0.08) 100%);
    box-shadow: 0 4px 16px rgba(31, 182, 255, 0.2);
}

/* Avatar container with badge positioning */
.notification-avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* Notification type badge (bottom-right corner) */
.notification-type-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

[data-theme="dark"] .notification-type-badge {
    border-color: #1a2332;
}

.notification-type-badge--like {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-type-badge--follow {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.notification-type-badge--comment {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Card badge for dog name */
.card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.card__badge--accent {
    background: rgba(31, 182, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(31, 182, 255, 0.3);
}

[data-theme="dark"] .card__badge--accent {
    background: rgba(31, 182, 255, 0.2);
    border-color: rgba(31, 182, 255, 0.4);
}

/* Unread indicator on the right side */
.notification-unread-indicator {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 16px;
}

.notification-unread-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
    box-shadow: 0 0 0 4px rgba(31, 182, 255, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(31, 182, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(31, 182, 255, 0.3);
    }
}

/* Empty state styling */
.empty-state-icon {
    font-size: 5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

[data-theme="dark"] .empty-state-text {
    color: #9ca3af;
}

/* Responsive adjustments for notifications */
@media (max-width: 768px) {
    .notification-avatar-container {
        width: 56px;
        height: 56px;
    }
    
    .notification-avatar-container .avatar {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.5rem !important;
    }
    
    .notification-type-badge {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        border-width: 2px;
    }
    
    .card__badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .notification-avatar-container {
        width: 48px;
        height: 48px;
    }
    
    .notification-avatar-container .avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
    }
    
    .notification-type-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
        bottom: -2px;
        right: -2px;
    }
    
    .card__badge {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        width: fit-content;
    }
    
    .empty-state-icon {
        font-size: 3.5rem;
    }
}

/* ============================================
   PHOTO GALLERY STYLES
   ============================================ */

/* Gallery Section Container */
.gallery-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.gallery-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.gallery-section h3 i {
    color: var(--accent);
    font-size: 1.5rem;
}

.gallery-section h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 182, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(31, 182, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

[data-theme="dark"] .gallery-section h3 span {
    background: rgba(31, 182, 255, 0.2);
    border-color: rgba(31, 182, 255, 0.4);
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
}

/* Gallery Item Card */
.gallery-item {
    position: relative;
    border-radius: var(--round);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--medium-shadow);
    border-color: var(--accent);
    z-index: 10;
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Gallery Item Image */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Caption Overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    color: white;
    padding: 20px 16px 16px 16px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Empty State */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gallery-empty i {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.gallery-empty h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.gallery-empty p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

[data-theme="dark"] .gallery-empty p {
    color: #9ca3af;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .gallery-section h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .gallery-section h3 i {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .gallery-caption {
        font-size: 0.85rem;
        padding: 16px 12px 12px 12px;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        margin-top: 32px;
        margin-bottom: 32px;
    }
    
    .gallery-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .gallery-section h3 span {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    /* Show caption on mobile without hover */
    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.8rem;
        padding: 12px 10px 10px 10px;
    }
    
    .gallery-empty {
        padding: 40px 20px;
    }
    
    .gallery-empty i {
        font-size: 3rem;
    }
    
    .gallery-empty h4 {
        font-size: 1.2rem;
    }
    
    .gallery-empty p {
        font-size: 0.95rem;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

/* Modal Backdrop Overlay */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
    opacity: 1 !important;
}

[data-theme="dark"] .modal-backdrop,
[data-theme="dark"] #followersModal,
[data-theme="dark"] #imageModal {
    background: rgba(0, 0, 0, 0.85);
}

/* Show modal when active */
.modal-backdrop.show,
#followersModal.show,
#imageModal.show {
    display: flex !important;
}

/* =========================================
   FOLLOWERS MODAL
   ============================================ */

#followersModal {
    z-index: 10000;
}

/* Followers Modal Dialog */
#followersModal > div {
    background: var(--card);
    border-radius: var(--round);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
}

[data-theme="dark"] #followersModal > div {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Followers Modal Header */
#followersModal > div > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

#followersModal h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Followers Modal Close Button */
#followersModal button {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

#followersModal button:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: rotate(90deg);
}

/* Followers List Container */
#followersListContainer {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 200px;
}

/* Follower Item */
.follower-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.follower-item:hover {
    background: rgba(31, 182, 255, 0.05);
}

[data-theme="dark"] .follower-item:hover {
    background: rgba(31, 182, 255, 0.1);
}

.follower-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Follower Avatar */
.follower-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1fb6ff 0%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(31, 182, 255, 0.25);
}

/* Follower Info */
.follower-info {
    flex: 1;
    min-width: 0;
}

.follower-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.follower-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
}

/* Followers Empty State */
.followers-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.followers-empty i {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

.followers-empty p {
    font-size: 1.05rem;
    margin: 0;
}

/* ============================================
   IMAGE MODAL (GALLERY VIEWER)
   ============================================ */

#imageModal {
    z-index: 10001;
    padding: 0;
}

/* Image Modal Content */
.image-modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Modal Close Button */
.image-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.image-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
}

/* Modal Navigation Buttons */
.image-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-nav--prev {
    left: 20px;
}

.image-modal-nav--next {
    right: 20px;
}

/* Modal Image */
.image-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

/* Modal Caption */
.image-modal-caption {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    margin-top: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal Counter */
.image-modal-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 12px;
    font-weight: 600;
}

/* ============================================
   MODAL RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 90%;
        max-height: 75vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    #followersModal > div {
        max-width: 90%;
        max-height: 70vh;
    }
    
    #followersModal > div > div:first-child {
        padding: 20px;
    }
    
    #followersModal h3 {
        font-size: 1.3rem;
    }
    
    .image-modal-content {
        padding: 20px;
    }
    
    .image-modal-img {
        max-height: 60vh;
    }
    
    .image-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .image-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95%;
        max-height: 80vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    #followersModal > div {
        max-width: 95%;
        max-height: 80vh;
        border-radius: 12px;
    }
    
    #followersModal > div > div:first-child {
        padding: 16px;
    }
    
    #followersModal h3 {
        font-size: 1.2rem;
    }
    
    #followersListContainer {
        padding: 12px;
    }
    
    .follower-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .follower-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .followers-empty {
        padding: 40px 20px;
    }
    
    .followers-empty i {
        font-size: 3rem;
    }
    
    .image-modal-content {
        padding: 10px;
    }
    
    .image-modal-img {
        max-height: 50vh;
        border-radius: 8px;
    }
    
    .image-modal-caption {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
    
    .image-modal-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .image-modal-nav--prev {
        left: 10px;
    }
    
    .image-modal-nav--next {
        right: 10px;
    }
    
    .image-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: 10px;
        right: 10px;
    }
}

/* Modal Loading State */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.modal-loading i {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal Error State */
.modal-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--danger);
}

.modal-error i {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.modal-error p {
    font-size: 1.05rem;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Modal Dialog for Edit Modals */
.modal-dialog {
    background: var(--card);
    border-radius: var(--round);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
}

[data-theme="dark"] .modal-dialog {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--accent);
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Modal Close Button */
.modal-close-btn {
    background: none !important;
    border: none !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger);
    transform: rotate(90deg);
}

/* ============================================
   DISCOVERY SECTIONS
   ============================================ */

/* Discovery Section Container */
.discovery-section {
    margin-bottom: 48px;
}

.discovery-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.discovery-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.discovery-header h3 i {
    color: var(--accent);
}

.discovery-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="dark"] .discovery-header {
    border-bottom-color: rgba(31, 182, 255, 0.3);
}

/* Feed Suggested Header */
.feed-suggested-header {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(31,182,255,0.08) 0%, rgba(31,182,255,0.04) 100%);
    border-radius: var(--round);
    border-left: 4px solid var(--accent);
}

[data-theme="dark"] .feed-suggested-header {
    background: linear-gradient(135deg, rgba(31,182,255,0.15) 0%, rgba(31,182,255,0.08) 100%);
}

.feed-suggested-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-suggested-header h3 i {
    color: var(--accent);
}

.feed-suggested-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Discovery Responsive */
@media (max-width: 768px) {
    .discovery-section {
        margin-bottom: 40px;
    }
    
    .discovery-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .discovery-header h3 {
        font-size: 1.3rem;
    }
    
    .feed-suggested-header {
        padding: 20px;
        margin-bottom: 28px;
    }
    
    .feed-suggested-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .discovery-section {
        margin-bottom: 32px;
    }
    
    .discovery-header {
        margin-bottom: 16px;
    }
    
    .discovery-header h3 {
        font-size: 1.2rem;
    }
    
    .discovery-header p {
        font-size: 0.9rem;
    }
    
    .feed-suggested-header {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .feed-suggested-header h3 {
        font-size: 1.2rem;
    }
    
    .feed-suggested-header p {
        font-size: 0.9rem;
    }
}

/* ============================================
   RECENT POST PREVIEW (for DogCard)
   ============================================ */

.recent-post-preview {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(31,182,255,0.04) 0%, rgba(31,182,255,0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(31,182,255,0.15);
}

[data-theme="dark"] .recent-post-preview {
    background: linear-gradient(135deg, rgba(31,182,255,0.12) 0%, rgba(31,182,255,0.08) 100%);
    border-color: rgba(31,182,255,0.25);
}

.recent-post-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.recent-post-header i {
    font-size: 0.9rem;
}

.recent-post-time {
    margin-left: auto;
    color: var(--text-secondary);
    font-weight: 400;
}

.recent-post-image {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    margin-bottom: 8px;
}

.recent-post-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.recent-post-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.recent-post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-post-stats i {
    font-size: 0.75rem;
}

/* Responsive for Recent Post Preview */
@media (max-width: 576px) {
    .recent-post-preview {
        padding: 10px;
        margin-top: 12px;
    }
    
    .recent-post-header {
        font-size: 0.75rem;
    }
    
    .recent-post-image {
        height: 100px;
    }
    
    .recent-post-content p {
        font-size: 0.8rem;
    }
    
    .recent-post-stats {
        font-size: 0.75rem;
        gap: 12px;
    }
}

/* ============================================
   LOCATION FILTER OPTIONS (for Feed Near Me)
   ============================================ */

.location-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.location-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--primary);
}

.location-filter-btn:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(31,182,255,0.06) 0%, rgba(31,182,255,0.03) 100%);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.location-filter-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(31,182,255,0.12) 0%, rgba(31,182,255,0.08) 100%);
    box-shadow: 0 0 0 4px rgba(31,182,255,0.1);
}

[data-theme="dark"] .location-filter-btn {
    background: #1a2332;
    border-color: #2d3748;
}

[data-theme="dark"] .location-filter-btn:hover {
    background: linear-gradient(135deg, rgba(31,182,255,0.15) 0%, rgba(31,182,255,0.08) 100%);
    border-color: var(--accent);
}

[data-theme="dark"] .location-filter-btn.active {
    background: linear-gradient(135deg, rgba(31,182,255,0.2) 0%, rgba(31,182,255,0.15) 100%);
}

.location-filter-btn i {
    font-size: 1.5rem;
    color: var(--accent);
}

.location-filter-btn span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.location-filter-btn small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

[data-theme="dark"] .location-filter-btn span {
    color: #f8fafb;
}

[data-theme="dark"] .location-filter-btn small {
    color: #9ca3af;
}

/* Responsive Location Filters */
@media (max-width: 768px) {
    .location-filter-options {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    
    .location-filter-btn {
        padding: 14px;
    }
    
    .location-filter-btn i {
        font-size: 1.3rem;
    }
    
    .location-filter-btn span {
        font-size: 0.95rem;
    }
    
    .location-filter-btn small {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .location-filter-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .location-filter-btn {
        padding: 12px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .location-filter-btn i {
        font-size: 1.2rem;
    }
    
    .location-filter-btn span {
        font-size: 0.9rem;
    }
    
    .location-filter-btn small {
        display: none;
    }
}