/* ================================
   GLOBAL BASE
================================== */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f8faff;
  color: #333;
  line-height: 1.6;
}

/* ================================
   FREELANCER PROFILE PAGE
================================== */
.freelancer-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-header {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.profile-info h2 {
  margin: 0 0 8px;
  color: #1b1b1b;
  font-size: 30px;
  font-weight: 700;
}

.job-title {
  color: #555;
  font-size: 18px;
  margin: 4px 0 15px;
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
	justify-content:center;
}

.tag {
    background: #8055c117;
    color: #8055c1;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
	text-transform: capitalize;
    transition: 0.2s ease;
}
.tag:hover {
  background: #8055c1;
  color: #fff;
}



/* ================================
   CALENDAR
================================== */
.calendar-section {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-header h3 {
  color: #8258c2;
  font-size: 18px;
}
.calendar-header button {
  background: #8258c2;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.calendar-header button:hover {
  background: #8258c2;
}

/* ================================
   FREELANCER MARKETPLACE LAYOUT
================================== */
.freelancer-marketplace {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}
@media (max-width: 992px) {
  .freelancer-marketplace {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Sidebar ---------------- */
.filters-sidebar {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: #8258c2;
  margin-bottom: 20px;
}


.filter-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}
.filters-sidebar input,
.filters-sidebar select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: 0.2s;
}
.filters-sidebar input:focus,
.filters-sidebar select:focus {
  border-color: #8258c2;
  background: #fff;
  outline: none;
}

.filters-sidebar button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #8258c2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.filters-sidebar button:hover {
  background: #073e94;
}

/* ================================
   FREELANCER CARD GRID
================================== */
.freelancer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* ---------------- Freelancer Card ---------------- */
.freelancer-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.freelancer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Profile Image */
.freelancer-image img {
  width: 120px !important; 
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin-bottom: 10px !important;
  border: 3px solid #f3f3f3 !important;
}

/* Rating */
.freelancer-card .stars {
  color: #ffc107;
  font-size: 20px;
  margin-bottom: 8px;
}

/* Name / Title */
.freelancer-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin: 5px 0;
  text-transform: capitalize;
}
.freelancer-card .job-title {
    font-size: 15px;
    color: #959595;
    margin-bottom: 15px;
    font-weight: 400;
      text-transform: capitalize;

}

/* Location & Language */
.freelancer-info {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.freelancer-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f6f7fb;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: #444;
}

/* Bio */
.freelancer-card .bio {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 5px;
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.skill-tags span {
  background: #e9f0ff;
  color: #8258c2;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  transition: 0.3s ease;
}
.skill-tags span:hover {
  background: #8258c2;
  color: #fff;
}

/* Price & Reviews */
.freelancer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}
.freelancer-meta .rate {
  font-weight: 700;
  color: #8258c2;
}

/* Member Since */
.freelancer-card .member-since {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
}

/* Button */
.freelancer-card .view-profile {
  display: inline-block;
  padding: 12px 28px;
  background: #8258c2;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 14px;
}
.freelancer-card .view-profile:hover {
  background: #073e94;
  box-shadow: 0 4px 18px rgba(10, 88, 202, 0.3);
}

/* ================================
   RESPONSIVE TWEAKS
================================== */
@media (max-width: 768px) {
  .freelancer-list {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
  }
}


.freelancer-card-footer a {
    padding: 10px !important;
    background: transparent !important;
    border: 1px solid #8055c1 !important;
    color: #8055c1 !important;
}

.freelancer-card-footer a:hover {
    background: #8055c1 !important;
    border: 1px solid #8055c1 !important;
    color: white !important;
}


/* ================================
   SEARCH & FILTERS SIDEBAR
================================== */
.search-filters-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
  padding: 30px 25px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Title */
.search-filters-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: black;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* Search Bar */
.search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.search-bar input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: 0.2s;
}

.search-bar input:focus {
  background: #fff;
  border-color: #8258c2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.15);
}

.search-bar button {
  background: #8055c1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background: #F7EBD6 !important;
  color:black !important;
}

/* Filter Groups */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-group select:focus {
  border-color: #8258c2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
  outline: none;
}

/* Reset Button */
#reset-filters {
  background: #8055c1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reset-filters:hover {
    background: #F7EBD6 !important;
    color: black !important;
    
}

/* Responsive */
@media (max-width: 768px) {
  .search-filters-section {
    position: static;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  }
}




/* ================================
   CALENDAR ENHANCED DESIGN
================================== */
.calendar-container {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #8258c2;
  letter-spacing: 0.3px;
}

div#bookings-container {
    margin-top: 10px;
}

/* Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 700;
  color: #555;
  background: #f2f4fa;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 13px;
}

/* Days */
.calendar-day {
  background: #fafafa;
  border-radius: 10px;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  min-height: 70px;
}

.calendar-day .day-number {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.calendar-day:hover {
  background: #8258c221;
  transform: scale(1.02);
}

.calendar-day.today {
  border: 2px solid #8258c2;
}

.calendar-day.past {
  opacity: 0.6;
  cursor: not-allowed;
}

.calendar-day.has-bookings {
    background: #8258c221;
    border: 1px solid #8258c254;
}

.booking-indicator {
  background: #8258c2;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: 0 0 0 3px #8258c221;
}

/* ================================
   BOOKING MODAL
================================== */
.day-bookings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.day-bookings-modal > div,
.day-bookings-modal .bookings-list {
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  padding: 50px 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow-y: auto;
  max-height: 80vh;
}

.day-bookings-modal h4 {
    margin-top: 0;
    color: white;
    font-weight: 700;
    text-align: center;
    display: block;
    background: #8258c2;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    width: 90%;
    max-width: 500px;
    margin-bottom: -25px;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px !important;
    z-index: 999999999999999;
}

.booking-item {
  background: #f8f9fd;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 4px solid #8258c2;
}

.booking-item p {
  margin: 6px 0;
  font-size: 14px;
  color: #444;
}

.close-modal.button {
    display: block;
    background: #8258c2;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    width: 90%;
    max-width: 500px;
    margin-top: -30px;
    border-radius: 0 0 8px 8px !important;
    padding: 10px !important;
}

.close-modal.button:hover {
  background: #8258c2;
}

/* ================================
   MOBILE
================================== */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 4px;
  }
  .calendar-day {
    padding: 8px 0;
    min-height: 60px;
  }
  .calendar-header h3 {
    font-size: 17px;
  }
}


/* ================================
   SELECTED DAY HIGHLIGHT
================================== */
.calendar-day.selected {
  background: #8258c2 !important;
  color: #fff !important;
  transform: scale(1.05);
}

.calendar-day.selected .day-number {
  color: #fff !important;
}

.calendar-day.selected .booking-indicator {
  background: #fff;
  color: #8258c2;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}



/* ================================
   SINGLE FREELANCER PAGE BASE
================================== */
.single-freelancer-page {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #222;
}

/* ================================
   FREELANCER HERO
================================== */
.freelancer-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(135deg, #f6f0ff 0%, #ede4ff 100%);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(128, 85, 193, 0.2);
  position: relative;
  overflow: hidden;
}


.freelancer-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(128, 85, 193, 0.2), transparent 70%);
  z-index: 0;
}

.freelancer-avatar {
  position: relative;
  z-index: 1;
  flex: 0 0 160px;
  margin-right: 40px;
}

.freelancer-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.placeholder-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #d6c1f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 40px;
}

.hero-info {
  flex: 1;
  z-index: 1;
  position: relative;
}

/* Title & Job */
.freelancer-title {
  font-size: 34px;
  margin-bottom: 5px;
  color: #1b1b1b;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-transform: capitalize;
}

.freelancer-job-title {
  font-size: 18px;
  color: #8055c1;
  font-weight: 600;
  margin-bottom: 0;
    text-transform: capitalize;

}

@media(max-width:768px){
    .freelancer-avatar img {
    width: 120px;
    height: 120px;}
    
    .freelancer-title {
    font-size: 25px;}
}

/* Rating */
.freelancer-rating-large {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars-large {
  font-size: 22px;
  color: #ffc107;
}

.freelancer-rating-large .rating-number {
  font-weight: 600;
  color: #444;
}

.no-rating {
  font-size: 14px;
  color: #999;
}

/* Info items */
.freelancer-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.freelancer-quick-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f2fa;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  transition: 0.25s ease;
}

.freelancer-quick-info .info-item:hover {
  background: #8055c1;
  color: #fff;
}

/* Skills */
.freelancer-skills {
  margin-top: 20px;
}

.freelancer-skills h4 {
  font-size: 16px;
  color: #8055c1;
  font-weight: 700;
  margin-bottom: 10px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: rgba(128, 85, 193, 0.15);
  color: #8055c1;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
  transition: 0.3s ease;
}

.skill-tag:hover {
  background: #8055c1;
  color: #fff;
}

/* ================================
   MAIN CONTENT
================================== */
.freelancer-main-content {
  margin-top: 50px;
}



@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

.about-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #8055c1;
  margin-bottom: 15px;
}

.about-section .bio-text {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* Booking CTA */
.booking-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, #f7efff, #ece4ff);
  border-left: 5px solid #8055c1;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 18px rgba(128, 85, 193, 0.1);
}

.booking-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: #8055c1;
  margin-bottom: 8px;
}

.booking-cta p {
  color: #555;
  font-size: 15px;
}

/* Booking Widget */
.booking-widget {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  padding: 25px;
  margin-top: 20px;
}

.booking-widget h3 {
  font-weight: 700;
  color: #8055c1;
  margin-bottom: 15px;
  text-align: center;
}

#booking-message p.success {
  background: rgba(128, 85, 193, 0.1);
  color: #8055c1;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

/* ================================
   RELATED FREELANCERS
================================== */
.related-freelancers {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-freelancers h2 {
  text-align: center;
  color: #8055c1;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
}

/* ================================
   BOOKING SUCCESS POPUP
================================== */
.booking-popup {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #8258c2;
  color: #fff;
  padding: 16px 22px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 99999;
}

.booking-popup.show {
  opacity: 1;
  transform: translateY(0);
}


.whatsapp-btn {
  background-color: #25D366;
  color: #fff !important;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1ebf5b;
}

.booking-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#booking-time option[disabled] {
  color: #aaa;
  background: #f8f8f8;
  text-decoration: line-through;
}


.view-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input {opacity: 0; width: 0; height: 0;}
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 26px;
}
.slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #8055c1; }
input:checked + .slider:before { transform: translateX(24px); }

.bookings-table {
  width: 100%; border-collapse: collapse;
}
.bookings-table th, .bookings-table td {
  padding: 10px 14px; border-bottom: 1px solid #eee;
}
.bookings-table th {
  background: #f5f5fa; font-weight: 600;
}
.bookings-table tr:hover { background: #faf7ff; }

/* ================================
   TERMS AND CONDITIONS CHECKBOX
================================== */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  background: #f9f9ff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.terms-checkbox:hover {
  background: #f0f0ff;
  border-color: #8055c1;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8055c1;
}

.terms-checkbox a {
  color: #8055c1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.terms-checkbox a:hover {
  color: #5c3d8a;
  text-decoration: underline;
}
