/* ========================================
   MODERN APP LAYOUT SYSTEM
   Mobile-First, Component-Driven Architecture
   ======================================== */

/* ========================================
   CSS VARIABLES & THEME SETUP
   ======================================== */

:root {
  --header-height: 64px;
  --sidebar-width: 80px;
  --bottom-nav-height: 70px;
  --content-padding: 1rem;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base HTML & Body Fixes */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent unwanted scrolling on body */
}

/* ========================================
   ROOT LAYOUT STRUCTURE
   ======================================== */

.app-layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.app-layout.hidden {
  display: none;
}

/* ========================================
   PREMIUM SIDEBAR
   ======================================== */

.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1a0d2e 0%, #0f0118 100%);
  border-right: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  cursor: pointer;
  transition: var(--transition);
}

.brand-icon {
  font-size: 32px;
}

.brand-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-light);
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.nav-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.nav-link:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.nav-link.active {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: white;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.nav-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  pointer-events: none;
}

.nav-text {
  display: none;
  pointer-events: none;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--danger-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.nav-badge.hidden {
  display: none;
}

.sidebar-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
  padding: 16px 0 0 0;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.logout-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.logout-btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Critical for flex layout - allows children to scroll properly */
  overflow: hidden;
  position: relative;
}

/* ========================================
   HEADER COMPONENT
   ======================================== */

.app-header {
  height: var(--header-height);
  background: linear-gradient(135deg, 
    rgba(26, 13, 46, 0.95), 
    rgba(15, 1, 24, 0.98));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  padding: 0 var(--content-padding);
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
}

.header-spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ========================================
   PAGE SYSTEM
   ======================================== */

.page {
  display: none;
  flex: 1;
  min-height: 0;
  /* Force scrollable height: 100vh - header (64px) - account for body margins */
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary);
}

#feedPage {
  height: 650px !important;
  max-height: 650px !important;
}

.page.active {
  display: flex;
  flex-direction: column;
}

/* ========================================
   FEED PAGE COMPONENTS
   ======================================== */

.feed-container {
  flex: 1;
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
  overflow: visible !important;
}

.feed-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.feed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

/* Post Card Component */
.post-card {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.06), 
    rgba(236, 72, 153, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1), 
    rgba(236, 72, 153, 0.06));
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.post-author-info {
  flex: 1;
}

.post-author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-size: 0.875rem;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0.25rem 0 0 0;
}

.post-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.75rem 0;
  line-height: 1.4;
}

.post-preview {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   COMPOSE PAGE COMPONENTS
   ======================================== */

.compose-container {
  flex: 1;
  padding: var(--content-padding);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.compose-card {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.06), 
    rgba(236, 72, 153, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.compose-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2rem 0;
  letter-spacing: -0.025em;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.875rem 1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.compose-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-primary {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* ========================================
   EXPLORE PAGE COMPONENTS
   ======================================== */

.explore-container {
  flex: 1;
  padding: var(--content-padding);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.explore-header {
  margin-bottom: 2rem;
}

.explore-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.025em;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-container input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
  position: absolute;
  right: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.explore-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Grid Systems */
.grid-system {
  display: grid;
  gap: 1rem;
}

.posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.writers-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid-item {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.06), 
    rgba(236, 72, 153, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grid-item:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1), 
    rgba(236, 72, 153, 0.06));
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.grid-item h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.grid-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.writer-item {
  align-items: center;
  text-align: center;
}

.writer-stats {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* ========================================
   PROFILE PAGE COMPONENTS
   ======================================== */

.profile-container {
  flex: 1;
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Profile Header */
.profile-header {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1), 
    rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 1rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 4px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.profile-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.05em;
}

.profile-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  max-width: 500px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Profile Content */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  border-bottom: 2px solid rgba(139, 92, 246, 0.1);
  padding-bottom: 1rem;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.badge-item {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.06), 
    rgba(236, 72, 153, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.badge-item:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1), 
    rgba(236, 72, 153, 0.06));
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.badge-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.badge-level {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0.25rem 0 0 0;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-top: 3px solid #a78bfa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  :root {
    --content-padding: 2rem;
    --header-height: 70px;
  }

  .app-layout {
    flex-direction: row;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .profile-header {
    padding: 2.5rem;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  :root {
    --content-padding: 2.5rem;
  }

  .feed-container,
  .compose-container,
  .explore-container,
  .profile-container {
    max-width: 1200px;
  }

  .compose-card {
    padding: 3rem;
  }

  .profile-header {
    padding: 3rem;
    gap: 2.5rem;
  }

  .profile-avatar {
    width: 160px;
    height: 160px;
  }

  .profile-name {
    font-size: 2.5rem;
  }
}

/* Mobile Optimizations (480px and below) */
@media (max-width: 480px) {
  :root {
    --content-padding: 1rem;
    --border-radius: 10px;
  }

  .app-header {
    padding: 0 1rem;
    height: 60px;
  }

  .header-title {
    font-size: 1.125rem;
  }

  /* Feed optimizations */
  .feed-container {
    gap: 1rem;
  }

  .feed-filters {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .post-card {
    padding: 1.25rem;
  }

  .post-title {
    font-size: 1rem;
  }

  /* Compose optimizations */
  .compose-card {
    padding: 1.5rem;
  }

  .compose-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .compose-form {
    gap: 1.25rem;
  }

  /* Profile optimizations */
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  /* Grid optimizations */
  .posts-grid,
  .writers-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-item {
    padding: 1.25rem;
  }
}

/* Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .writers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar-section {
    width: 100%;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .post-card,
  .grid-item,
  .badge-item,
  .compose-card,
  .profile-header {
    border-width: 2px;
    background: transparent;
  }
}

/* ========================================
   COMPOSE BUTTONS - OPTIMIZED
   ======================================== */

.compose-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-compose {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compose:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-compose[type="reset"] {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-compose[type="reset"]:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* Desktop layout */
@media (min-width: 769px) {
    .compose-actions {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .btn-compose {
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        min-height: 60px;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .compose-actions {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .btn-compose {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-height: 48px;
    }
}