/* Modern UI Redesign - Stories Dropdown & Enhanced Styling */

/* Stories Dropdown Container */
.nav-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Stories Toggle Button */
.stories-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.stories-toggle.active {
  color: var(--primary-color, #8b5cf6);
}

/* Stories Dropdown Menu - Dark Theme */
.stories-dropdown {
  position: fixed;
  top: auto;
  left: auto;
  background: var(--bg-secondary, #1a0d2e);
  border: 1px solid var(--bg-tertiary, #2d1b4e);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  min-width: 260px;
  z-index: 10000;
  overflow: hidden;
  animation: dropdownSlideIn 0.3s ease;
}

.stories-dropdown.hidden {
  display: none !important;
  pointer-events: none;
  opacity: 0;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Items - Dark Theme */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: var(--text-primary, #f0e7ff);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--bg-tertiary, #2d1b4e);
}

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

.dropdown-item:hover {
  background: var(--bg-hover, #3d2563);
  padding-left: 24px;
}

.dropdown-item:active {
  background: var(--bg-tertiary, #2d1b4e);
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary-color, #8b5cf6);
  stroke: currentColor;
}

.dropdown-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #f0e7ff);
}

.dropdown-emoji {
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== UNSENT MESSAGES REDESIGN ===== */

/* Modern Letter Card - Confessions Style */
.letter-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border: 2px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Georgia', serif;
}

.letter-card:hover {
  box-shadow: 0 16px 48px rgba(255, 107, 107, 0.2);
  transform: translateY(-8px);
  border-color: rgba(255, 107, 107, 0.4);
}

/* Letter Header Styling */
.letter-header {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.letter-line {
  display: flex;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #333;
}

.letter-line-label {
  font-weight: 700;
  min-width: 50px;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.letter-line-content {
  margin-left: 10px;
  flex: 1;
  word-wrap: break-word;
  color: #555;
  font-size: 0.95rem;
}

.letter-line-content.to {
  font-style: italic;
  color: #d77a7a;
}

/* Letter Content */
.letter-content {
  position: relative;
  z-index: 1;
  margin: 28px 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
  letter-spacing: 0.4px;
}

/* Category Badge - Modern */
.letter-category {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 140, 95, 0.15) 100%);
  color: #ff6b6b;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 15px;
  text-transform: capitalize;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Meta Information - Modern */
.letter-meta {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 107, 107, 0.1);
  font-size: 0.85rem;
  color: #888;
  text-align: right;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.letter-author {
  color: #ff6b6b;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.letter-date {
  color: #999;
  font-size: 0.8rem;
}

/* Modern Letter Actions */
.letter-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 107, 107, 0.1);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 140, 95, 0.08) 100%);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.action-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 140, 95, 0.15) 100%);
  border-color: #ff6b6b;
  transform: translateY(-2px);
}

.action-btn.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8c5f 100%);
  color: white;
  border-color: transparent;
}

/* ===== BOTTLES REDESIGN ===== */

/* Modern Bottle Card - Confessions Style */
.bottle-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border: 2px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottle-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(10px); }
}

.bottle-card:hover {
  box-shadow: 0 16px 48px rgba(255, 107, 107, 0.2);
  transform: translateY(-8px);
  border-color: rgba(255, 107, 107, 0.4);
}

.bottle-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.bottle-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.bottle-sender-info {
  flex: 1;
}

.bottle-sender-name {
  font-weight: 600;
  color: #ff6b6b;
  font-size: 0.95rem;
}

.bottle-sender-time {
  font-size: 0.8rem;
  color: #999;
  margin-top: 3px;
}

.bottle-message {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 107, 107, 0.05);
  border-left: 4px solid #ff6b6b;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.bottle-status-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8c5f 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.bottle-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.bottle-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8c5f 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.bottle-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* ===== CONFESSIONS REDESIGN ===== */

/* Modern Confession Card */
.confession-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border: 2px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confession-card:hover {
  box-shadow: 0 16px 48px rgba(255, 107, 107, 0.2);
  transform: translateY(-8px);
  border-color: rgba(255, 107, 107, 0.4);
}

.confession-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.confession-title {
  font-weight: 700;
  color: #ff6b6b;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confession-mode {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.confession-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #444;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid #ff6b6b;
  border-radius: 8px;
}

.confession-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 107, 107, 0.1);
  font-size: 0.85rem;
  color: #888;
}

.confession-stats {
  display: flex;
  gap: 15px;
}

.confession-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Page Headers - Modern */
.unsent-messages-header,
.bottles-header,
.confessions-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 16px;
}

.unsent-messages-header h2,
.bottles-header h2,
.confessions-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  font-family: 'Georgia', serif;
}

.unsent-messages-header p,
.bottles-header p,
.confessions-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

/* Create Button - Modern */
.create-unsent-btn,
.create-bottle-btn,
.create-confession-btn {
  display: block;
  margin: 30px auto;
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.5px;
}

.create-unsent-btn:hover,
.create-bottle-btn:hover,
.create-confession-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.create-unsent-btn:active,
.create-bottle-btn:active,
.create-confession-btn:active {
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stories-dropdown {
    min-width: 240px;
  }

  .dropdown-item {
    padding: 14px 16px;
  }

  .dropdown-item:hover {
    padding-left: 20px;
  }

  .letter-card,
  .bottle-card,
  .confession-card {
    padding: 20px;
    border-radius: 12px;
  }

  .letter-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .letter-actions {
    gap: 8px;
  }

  .action-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .unsent-messages-header h2,
  .bottles-header h2,
  .confessions-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .stories-dropdown {
    min-width: 200px;
    left: -80px;
  }

  .letter-card,
  .bottle-card,
  .confession-card {
    padding: 16px;
    margin: 0 5px;
  }

  .letter-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .unsent-messages-header h2,
  .bottles-header h2,
  .confessions-header h2 {
    font-size: 1.5rem;
  }

  .unsent-messages-header p,
  .bottles-header p,
  .confessions-header p {
    font-size: 0.9rem;
  }
}
