/* FATweet Stilleri - Twitter Tarzı Sistem */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* FATweet Genel Stilleri */
.fatweet-container,
.fatweet-modal-content,
.fatweet-navbar-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.fatweet-avatar .username,
.fatweet-navbar-avatar .username,
.fatweet-modal-username,
.fatweet-modal-text,
.fatweet-share-btn,
.fatweet-nav-counter {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Metin Hizalaması */
.fatweet-modal-text {
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 15px 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Emoji Desteği */
.fatweet-modal-text {
  font-feature-settings: "variation-selectors" 1;
  -webkit-text-size-adjust: 100%;
}

/* Emoji Boyutu */
.fatweet-modal-text img[alt*="emoji"],
.fatweet-modal-text img[class*="emoji"] {
  height: 1.2em;
  width: 1.2em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

.fatweet-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 5px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.fatweet-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.fatweet-logo span:first-child {
  color: #1DA1F2;
}

.fatweet-logo span:last-child {
  color: #000;
}

.fatweet-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  flex: 1;
}

.fatweet-avatars {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.fatweet-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 11px;
  color: #333;
  min-width: 55px;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.fatweet-avatar:hover {
  transform: translateY(-2px);
}

.fatweet-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1DA1F2;
  transition: all 0.3s ease;
  object-fit: cover;
}

.fatweet-avatar img:hover {
  transform: scale(1.1);
  border-color: #1a91da;
}

.fatweet-avatar .username {
  margin-top: 3px;
  font-weight: 500;
  max-width: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fatweet-avatar .remaining-time {
  font-size: 9px;
  color: #666;
  font-weight: bold;
  margin-top: 1px;
}

.fatweet-avatar .remaining-time i {
  margin-right: 2px;
}

.fatweet-avatar .tweet-count {
  font-size: 8px;
  color: #999;
  font-weight: bold;
  margin-top: 1px;
}

.fatweet-avatar .tweet-count i {
  margin-right: 2px;
}

.fatweet-avatar.fatweet-expiring-soon img {
  border-color: #ff4444;
  animation: pulse-red 2s infinite;
}

.fatweet-avatar.fatweet-expiring-soon .remaining-time {
  color: #ff4444;
  animation: blink 1s infinite;
}

@keyframes pulse-red {
  0% { border-color: #ff4444; }
  50% { border-color: #ff8888; }
  100% { border-color: #ff4444; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

.fatweet-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DA1F2 0%, #1a91da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 5px;
  border: none;
  box-shadow: 0 2px 6px rgba(29, 161, 242, 0.3);
}

.fatweet-plus:hover {
  background: linear-gradient(135deg, #1a91da 0%, #1DA1F2 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.fatweet-next {
  width: 28px;
  height: 28px;
  background: rgba(29, 161, 242, 0.3);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #1DA1F2;
  margin-left: 5px;
  transition: all 0.3s ease;
  border: none;
}

.fatweet-next:hover {
  background: rgba(29, 161, 242, 0.5);
  transform: scale(1.1);
}

/* Navbar Stilleri */
.fatweet-navbar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: transparent;
}

.fatweet-navbar-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.fatweet-navbar-logo span:first-child {
  color: #1DA1F2;
}

.fatweet-navbar-logo span:last-child {
  color: #000;
}

.fatweet-navbar-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.fatweet-navbar-avatars {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fatweet-navbar-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 10px;
  color: #333;
  min-width: 45px;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.fatweet-navbar-avatar:hover {
  transform: translateY(-2px);
}

.fatweet-navbar-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #1DA1F2;
  transition: all 0.3s ease;
  object-fit: cover;
}

.fatweet-navbar-avatar img:hover {
  transform: scale(1.1);
  border-color: #1a91da;
}

.fatweet-navbar-avatar .username {
  margin-top: 4px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fatweet-navbar-avatar .time-info {
  font-size: 8px;
  color: #666;
  font-weight: bold;
  margin-top: 1px;
}

.fatweet-navbar-avatar .time-info i {
  margin-right: 2px;
}

.fatweet-navbar-avatar.fatweet-expiring-soon img {
  border-color: #ff4444;
  animation: pulse-red 2s infinite;
}

.fatweet-navbar-avatar.fatweet-expiring-soon .time-info {
  color: #ff4444;
  animation: blink 1s infinite;
}

.fatweet-navbar-next {
  width: 25px;
  height: 25px;
  background: rgba(29, 161, 242, 0.3);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #1DA1F2;
  margin-left: 5px;
  transition: all 0.3s ease;
  border: none;
}

.fatweet-navbar-next:hover {
  background: rgba(29, 161, 242, 0.5);
  transform: scale(1.1);
}

.fatweet-navbar-plus {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DA1F2 0%, #1a91da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(29, 161, 242, 0.3);
  border: none;
}

.fatweet-navbar-plus:hover {
  background: linear-gradient(135deg, #1a91da 0%, #1DA1F2 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

/* Modal Stilleri */
.fatweet-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.fatweet-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.fatweet-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 600px;
  max-height: 85vh;
  margin: 5% auto;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fatweet-modal-header {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  align-items: center;
  flex-direction: row-reverse;
}

.fatweet-modal-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.fatweet-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #1DA1F2;
}

.fatweet-modal-username {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.fatweet-modal-time {
  color: #666;
  font-size: 12px;
}

.fatweet-modal-time i {
  margin-right: 3px;
  color: #999;
}

.fatweet-modal-expires {
  color: #666;
  font-size: 12px;
  font-weight: bold;
  margin-top: 2px;
}

.fatweet-modal-expires i {
  margin-right: 3px;
}

.fatweet-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #df0c0c;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  right: 15px;
  justify-content: flex-end;
  transition: all 0.2s ease;
}

.fatweet-modal-close:hover {
  color: #333;
  transform: scale(1.1);
}

.fatweet-modal-close i {
  font-size: 20px;
}

.fatweet-modal-media {
  padding: 10px 0;
}

.fatweet-media-item {
  margin-bottom: 10px;
}

.fatweet-media-item img,
.fatweet-media-item video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 8px;
}

.fatweet-youtube {
  position: relative;
  cursor: pointer;
}

.fatweet-youtube .youtube-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fatweet-youtube .youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.fatweet-youtube .youtube-play i {
  margin-left: 2px;
}

.fatweet-youtube:hover .youtube-play {
  background: rgba(255, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Engagement Istatistikleri */
.fatweet-modal-engagement {
  display: flex;
  justify-content: space-around;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.engagement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.engagement-item i {
  font-size: 18px;
  color: #1DA1F2;
}

.engagement-value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.engagement-label {
  font-size: 11px;
  color: #666;
}

/* Sosyal Medya Paylasim Butonlari */
.fatweet-modal-share {
  display: flex;
  gap: 8px;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  flex-wrap: wrap;
  justify-content: center;
}

.fatweet-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.fatweet-share-btn i {
  font-size: 14px;
}

.fatweet-share-facebook {
  background: #1877F2;
}

.fatweet-share-facebook:hover {
  background: #0a66c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.fatweet-share-twitter {
  background: #1DA1F2;
}

.fatweet-share-twitter:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.fatweet-share-whatsapp {
  background: #25D366;
}

.fatweet-share-whatsapp:hover {
  background: #1fb954;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.fatweet-share-telegram {
  background: #0088cc;
}

.fatweet-share-telegram:hover {
  background: #006ba3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.fatweet-share-copy {
  background: #666;
}

.fatweet-share-copy:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

/* Modal Navigasyon Butonlari */
.fatweet-modal-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.fatweet-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.fatweet-nav-btn:hover {
  background: #1DA1F2;
  color: white;
  transform: scale(1.1);
}

.fatweet-nav-counter {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* Notification */
.fatweet-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1DA1F2;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100000;
}

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

.fatweet-notification i {
  font-size: 16px;
}

/* Trending Stilleri */
.fatweet-trends {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 10px;
}

.fatweet-trend-item {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fatweet-trend-item:hover {
  background: #f0f0f0;
}

.fatweet-trend-item:last-child {
  border-bottom: none;
}

.trend-number {
  font-weight: 700;
  color: #1DA1F2;
  font-size: 12px;
}

.fatweet-trend-item a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fatweet-trend-item a:hover {
  color: #1DA1F2;
}

.trend-posts {
  color: #999;
  font-size: 11px;
  white-space: nowrap;
}

/* Navbar Trending */
.fatweet-navbar-trends {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 5px 0;
  margin-top: 5px;
}

.fatweet-navbar-trend-item {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 11px;
}

.fatweet-navbar-trend-item:hover {
  background: #f0f0f0;
}

.fatweet-navbar-trend-item:last-child {
  border-bottom: none;
}

.trend-rank {
  font-weight: 700;
  color: #1DA1F2;
  font-size: 10px;
  margin-right: 4px;
}

.fatweet-navbar-trend-item a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.fatweet-navbar-trend-item a:hover {
  color: #1DA1F2;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .fatweet-container {
    gap: 10px;
    padding: 6px 8px;
  }
  
  .fatweet-logo,
  .fatweet-navbar-logo {
    font-size: 16px;
  }
  
  .fatweet-avatar,
  .fatweet-navbar-avatar {
    min-width: 45px;
  }
  
  .fatweet-avatar img,
  .fatweet-navbar-avatar img {
    width: 35px;
    height: 35px;
  }
  
  .fatweet-modal-content {
    max-width: 90%;
    max-height: 90vh;
  }
  
  .fatweet-modal-share {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .fatweet-share-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .fatweet-modal-engagement {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .engagement-item {
    flex: 1;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .fatweet-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .fatweet-wrapper {
    width: 100%;
  }
  
  .fatweet-logo,
  .fatweet-navbar-logo {
    font-size: 14px;
  }
  
  .fatweet-avatar,
  .fatweet-navbar-avatar {
    min-width: 40px;
  }
  
  .fatweet-avatar img,
  .fatweet-navbar-avatar img {
    width: 32px;
    height: 32px;
  }
  
  .fatweet-modal-content {
    max-width: 95%;
    border-radius: 8px;
  }
  
  .fatweet-modal-header {
    padding: 10px 15px;
  }
  
  .fatweet-modal-text {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .fatweet-share-btn {
    padding: 6px 8px;
    font-size: 10px;
    flex: 1;
    min-width: 45%;
  }
  
  .fatweet-notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

/* Responsive Navbar Bolme */
@media (max-width: 1200px) {
  .fatagram-navbar-container,
  .fatweet-navbar-container {
    flex: 1 !important;
    min-width: 280px !important;
  }
}

@media (max-width: 992px) {
  .fatagram-navbar-container,
  .fatweet-navbar-container {
    flex: 1 !important;
    min-width: 250px !important;
  }
  
  .fatagram-navbar-logo,
  .fatweet-navbar-logo {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  div[style*="display: flex"][style*="gap: 20px"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .fatagram-navbar-container,
  .fatweet-navbar-container {
    flex: 1 !important;
    min-width: 100% !important;
    border-right: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-bottom: 2px solid #333 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .fatagram-navbar-container:last-child,
  .fatweet-navbar-container:last-child {
    border-bottom: none !important;
  }
}

@media (max-width: 480px) {
  .fatagram-navbar-logo,
  .fatweet-navbar-logo {
    font-size: 14px !important;
  }
  
  .fatagram-navbar-container,
  .fatweet-navbar-container {
    gap: 8px !important;
  }
  
  .fatagram-navbar-avatars,
  .fatweet-navbar-avatars {
    gap: 6px !important;
  }
}

/* Media Gosterimi */
.fatweet-modal-media {
  padding: 10px 20px;
  background: #f9f9f9;
}

.fatweet-media-item {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

/* Smilie Gosterimi */
.fatweet-modal-text img {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
}

.fatweet-modal-text {
  font-feature-settings: "variation-selectors" 1;
  -webkit-text-size-adjust: 100%;
}

/* Smilie Gosterimi - DUZELTILDI */
.fatweet-modal-text img.fatweet-smilie {
  height: 20px !important;
  width: auto !important;
  vertical-align: middle !important;
  margin: 0 2px !important;
  display: inline-block !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.fatweet-modal-text {
  font-feature-settings: "variation-selectors" 1;
  -webkit-text-size-adjust: 100%;
}

/* Smilie Preview */
.fatweet-navbar-avatars .fatweet-navbar-avatar .smilie-preview img {
  height: 16px;
  width: auto;
  vertical-align: middle;
  margin: 0 1px;
  display: inline;
}


.fatweet-media-item img,
.fatweet-media-item video,
.fatweet-media-item iframe {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 8px;
}

.fatweet-media-item video {
  background: #000;
  max-height: 500px;
}

.fatweet-media-item iframe {
  max-height: 400px;
}

/* Resim Hover Efekti */
.fatweet-media-item img:hover {
  opacity: 0.9;
  cursor: pointer;
}

/* Video Kontrolleri */
.fatweet-modal-media video::-webkit-media-controls {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Media */
@media (max-width: 768px) {
  .fatweet-modal-media {
    padding: 8px 15px;
  }
  
  .fatweet-media-item {
    margin-bottom: 8px;
  }
  
  .fatweet-media-item video {
    max-height: 300px;
  }
  
  .fatweet-media-item iframe {
    max-height: 280px;
  }
}
