/* X (Twitter) Interface Styles - Mobile First Approach */

/* Base Styles (Mobile First - 320px and up) */
.twitter-interface {
  width: 100%;
  max-width: 300px;
  background-color: #15202b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  margin: 0 auto 20px;
}

/* X Header */
.twitter-header {
  background-color: #000000;
  padding: 12px;
  border-bottom: 1px solid #2f3336;
  display: flex;
  align-items: center;
}

.twitter-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Twitter Profile */
.twitter-profile {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.profile-banner {
  height: 80px;
  background-image: url('images/Fratello3_Twitter_Banner.png');
  background-size: cover;
  background-position: center;
  margin-bottom: 15px;
  position: relative;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1D9BF0;
  border: 2px solid #000000;
  background-image: url('images/Fratello3_Twitter_Pic.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.profile-info {
  padding: 8px 12px;
  position: relative;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.profile-name-container {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 2px;
}

.profile-handle {
  font-size: 13px;
  color: #71767b;
  margin-bottom: 8px;
}

.edit-profile-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: transparent;
  border: 1px solid #71767b;
  border-radius: 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
}

.profile-bio {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.profile-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-value {
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
}

.stat-label {
  font-size: 12px;
  color: #71767b;
}

/* Follower Counter with Animation */
.follower-count {
  position: relative;
}

.pulse-animation {
  animation: pulse-blue 0.3s ease-in-out;
}

@keyframes pulse-blue {
  0% {
    color: #ffffff;
    transform: scale(1);
  }
  50% {
    color: #1DA1F2;
    transform: scale(1.1);
  }
  100% {
    color: #ffffff;
    transform: scale(1);
  }
}

/* Main Cards Container */
.main-cards-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Follower Graph */
.follower-graph-container {
  display: block;
  margin: 8px 12px;
  height: 60px;
}

.follower-graph {
  display: block;
  height: 100%;
}

/* Notifications */
.twitter-notifications {
  margin: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.twitter-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background-color: #192734;
  border-radius: 8px;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.notification-show {
  transform: translateX(0);
  opacity: 1;
}

.notification-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #38444d;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" stroke="%231DA1F2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="12" cy="7" r="4" stroke="%231DA1F2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.notification-content {
  font-size: 13px;
  color: #ffffff;
}

.notification-user {
  font-weight: 700;
  color: #ffffff;
}

/* Glow Effect */
.twitter-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(29, 161, 242, 0.2) 0%, rgba(29, 161, 242, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .twitter-interface {
    max-width: 340px;
  }
  
  .twitter-header {
    padding: 14px;
  }
  
  .twitter-logo {
    width: 22px;
    height: 22px;
  }
  
  .profile-banner {
    height: 90px;
  }
  
  .profile-avatar {
    width: 44px;
    height: 44px;
    background-size: 44px;
  }
  
  .profile-info {
    padding: 10px 14px;
  }
  
  .profile-name {
    font-size: 17px;
  }
  
  .profile-handle {
    font-size: 14px;
  }
  
  .edit-profile-btn {
    font-size: 14px;
    padding: 5px 14px;
  }
  
  .profile-bio {
    font-size: 14px;
  }
  
  .stat-value {
    font-size: 15px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .twitter-notifications {
    max-height: 140px;
  }
  
  .twitter-notification {
    padding: 10px;
  }
  
  .notification-avatar {
    width: 36px;
    height: 36px;
    background-size: 22px;
  }
  
  .notification-content {
    font-size: 14px;
  }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .twitter-interface {
    max-width: 380px;
    margin: 0;
  }
  
  .profile-banner {
    height: 100px;
    margin-bottom: 20px;
  }
  
  .profile-avatar {
    width: 48px;
    height: 48px;
    background-size: 48px;
    margin-right: 10px;
  }
  
  .profile-info {
    padding: 10px 15px;
  }
  
  .profile-name {
    font-size: 18px;
  }
  
  .profile-bio {
    line-height: 1.4;
  }
  
  .twitter-notifications {
    margin: 10px 15px;
    gap: 10px;
    max-height: 150px;
  }
  
  .notification-avatar {
    width: 40px;
    height: 40px;
    background-size: 24px;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .twitter-interface {
    max-width: 400px;
  }
  
  .profile-banner {
    height: 120px;
  }
  
  .twitter-notifications {
    max-height: 200px;
  }
  
  .twitter-notification {
    gap: 10px;
  }
}
