/* Additional styles to fix issues and implement new features */

/* Mobile Responsive Fixes */
@media (max-width: 767px) {
  /* Fix for popular destinations - remove arrows on mobile */
  .bubble-nav {
    display: none !important;
  }

  /* Make bubbles container full width on mobile */
  .bubbles-container {
    width: 100%;
    overflow-x: hidden;
  }

  .bubbles-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
  }

  .bubbles-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
  }

  /* Fix for mobile search and filter */
  .search-container {
    flex-direction: column;
    gap: 10px;
  }

  .search-box {
    width: 100%;
  }

  .filter-toggle {
    align-self: center;
    background-color: var(--primary-color);
    color: white;
  }

  /* Fix for banner slider on mobile */
  .banner-slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Mobile menu auth buttons side by side */
  .mobile-auth {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
  }

  .mobile-auth .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Hide desktop auth buttons on mobile */
  .auth-buttons.desktop-only {
    display: none;
  }
}

/* Improved Tariff Cards */
.plan-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.plan-logo {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
  z-index: 1;
}

.plan-data-bubble {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--success-color);
  color: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.plan-data-bubble .data {
  font-size: 1.3rem;
  line-height: 1;
}

.plan-data-bubble .validity {
  font-size: 0.7rem;
  opacity: 0.9;
}

.plan-header {
  margin-top: 60px;
  margin-bottom: 20px;
  text-align: center;
}

.plan-type {
  background-color: var(--background-light);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-details {
  margin-bottom: 25px;
  text-align: center;
}

.plan-coverage {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.plan-gift {
  color: var(--success-color);
  font-weight: 600;
  font-size: 14px;
  background-color: rgba(40, 167, 69, 0.1);
  padding: 5px 10px;
  border-radius: 50px;
  display: inline-block;
}

.plan-data {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--success-color);
  color: white;
  border-radius: 5px;
  width: 60px;
  padding: 3px 6px;
  min-width: 70px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  font-weight: normal;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
  text-align: center;
}

.plan-data span {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 1;           /* Satır yüksekliği minimumda */
}

/* 1 GB yazısı için */
.plan-data .data {
  font-size: 1.2rem;        /* Biraz küçülttük */
  line-height: 1;           /* Satır yüksekliğini sıkılaştırdık */
  margin: 0;                /* Ekstra boşlukları kaldırdık */
  padding: 0;
}

/* 7 Gün yazısı için */
.plan-data .validity {
  font-size: 0.8rem;        /* Daha küçük font boyutu */
  line-height: 1;           /* Satır yüksekliği minimum */
  margin: 0;                /* Ekstra boşlukları kaldırdık */
  padding: 0;
  opacity: 0.9;
}

.btn-buy { 
padding: 8px 16px;          /* Daha zarif bir görünüm için padding azaltıldı */
border-radius: 6px;         /* Daha küçük border-radius */
font-weight: 500;           /* Yazı kalınlığını biraz azalttık */
font-size: 0.9rem;          /* Font boyutunu küçülttük */
text-transform: uppercase;
letter-spacing: 0.3px;      /* Harfler arası boşluğu azalttık */
transition: all 0.3s ease;
display: inline-block;      /* Inline-block ile genişlik kontrol edildi */
margin: 0 auto;  
text-align: center
}

.btn-buy:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3); /* Daha hafif bir gölge */
}
.btn-buy {
  display: block;
  margin: 0 auto;
}




/* Cart Popup */
.cart-popup {
  position: fixed;
  top: 80px;
  right: -400px;
  width: 350px;
  max-width: 90vw;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  z-index: 2000;
  transition: right 0.3s ease;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  width: 10px; 
}

.cart-popup.active {
  right: 20px;
}

.cart-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-popup-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-popup {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
}

.cart-popup-items {
  padding: 15px 20px;
  max-height: 300px;
  overflow-y: auto;
}

.cart-popup-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-popup-item:last-child {
  border-bottom: none;
}

.cart-popup-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-popup-item-details h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.cart-popup-item-details p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.cart-popup-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  font-weight: 600;
}

.cart-popup-buttons {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.cart-popup-buttons .btn {
  flex: 1;
}

.empty-cart {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
}

/* User Menu */
.user-menu-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-menu-toggle img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu {
  position: fixed;
  top: 80px;
  right: -300px;
  width: 280px;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  z-index: 2000;
  transition: right 0.3s ease;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.user-menu.active {
  right: 20px;
}

.user-menu-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.user-menu-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.user-menu-header h3 {
  margin: 0 0 5px;
}

.user-menu-header p {
  margin: 0;
  color: var(--text-light);
}

.user-menu-items {
  padding: 10px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-color);
  transition: background-color 0.2s ease;
}

.user-menu-item:hover {
  background-color: var(--background-light);
}

.user-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

/* Mobile User Menu */
.mobile-user-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.mobile-user-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.mobile-user-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  font-size: 12px;
}

.mobile-user-nav a.active {
  color: var(--primary-color);
}

.mobile-user-nav i {
  font-size: 20px;
  margin-bottom: 5px;
}

@media (max-width: 767px) {
  .mobile-user-menu {
    display: block;
  }

  .dashboard-container {
    margin-bottom: 70px;
  }

  .dashboard-sidebar {
    display: none;
  }
}

/* Credit Card Preview */
.card-preview-container {
  perspective: 1000px;
  margin-bottom: 30px;
}

.card-preview {
  width: 100%;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card-preview.show-back {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #0066cc, #004080);
  color: white;
}

.card-back {
  transform: rotateY(180deg);
}

.card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
}

.card-chip {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 50px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.card-number {
  position: absolute;
  top: 120px;
  left: 20px;
  font-size: 18px;
  letter-spacing: 2px;
}

.card-details {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
}

.card-name {
  text-transform: uppercase;
  font-size: 14px;
}

.card-expiry {
  font-size: 14px;
}

.card-stripe {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.8);
}

.card-signature {
  position: absolute;
  top: 90px;
  left: 20px;
  width: calc(100% - 40px);
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.card-cvv {
  color: #333;
  font-weight: bold;
}

/* Copy button styles */
.copy-btn {
  background-color: var(--background-light);
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background-color: var(--primary-light);
}

.copy-field {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.copy-field span {
  font-weight: 600;
  margin-right: 10px;
}

/* E-SIM Card Animation */
.esim-card {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0066cc, #004080);
  color: white;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.esim-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: translateX(-50%) rotate(45deg);
  }
  100% {
    transform: translateX(50%) rotate(45deg);
  }
}

.esim-chip {
  position: absolute;
  top: 1000px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffb800, #ff9000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.esim-chip::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 6px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
}

.esim-details {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.esim-number {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.esim-info {
  display: flex;
  justify-content: space-between;
}

.esim-provider {
  font-weight: bold;
}

.esim-expiry {
  opacity: 0.8;
}

.esim-logo {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: url('https://telmoesim.com.tr/cumali/uploads/default.jpg') no-repeat center;
  background-size: cover;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px; /* Sayfanın üstünde görünmesi için */
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(-100px); /* Üstten aşağı doğru kayacak */
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}


/* Status indicators */
.status-success {
  color: var(--success-color);
  font-weight: 600;
}

.status-pending {
  color: var(--warning-color);
  font-weight: 600;
}

.status-failed {
  color: var(--danger-color);
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.pagination a.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination a.next,
.pagination a.prev {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Corporate page styles */
.corporate-benefits {
  margin: 60px 0;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.benefit-content {
  flex: 1;
}

.benefit-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.benefit-content p {
  margin: 0;
  color: var(--text-light);
}

.corporate-plans {
  margin: 60px 0;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.corporate-clients {
  margin: 60px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.client-logo {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px);
}

.client-logo img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

.corporate-contact {
  margin: 60px 0;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.corporate-form {
  margin-top: 30px;
}

@media (min-width: 768px) {
  .benefits-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Contact page styles */
.contact-container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.contact-info {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-content h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-info-content p {
  margin: 0;
  color: var(--text-light);
}

.contact-map {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
  }

  .contact-form-container {
    flex: 2;
  }

  .contact-info {
    flex: 1;
  }
}

/* Blog detail page fixes */
.blog-detail-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-main-content {
  flex: 2;
}

.blog-sidebar {
  flex: 1;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  height: fit-content;
}

.blog-sidebar h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-post {
  display: flex;
  gap: 15px;
}

.sidebar-post-image {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sidebar-post-content h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.sidebar-post-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 12px;
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  margin-bottom: 10px;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
}

.sidebar-categories a:hover {
  color: var(--primary-color);
}

.category-count {
  background-color: var(--background-light);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

@media (min-width: 992px) {
  .blog-detail-container {
    flex-direction: row;
  }
}

