/* Poppins Font Definitions using TTF files - Only Essential Weights */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins-ExtraBold';
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins-Medium';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
  font-family: 'Poppins';
  src: url('./assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} */

/* CSS Reset for white border fix */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section - Simple 50/50 Split */
.hero-section {
  display: flex;
  height: 600px; /* Changed from min-height: 100vh */
}

/* LEFT SECTION - Layered approach */
.hero-left-section {
  flex: 1;
  position: relative;
  padding: 2rem 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  z-index: 2; /* <-- Lift entire left section above right */
  background-color: #FF4A00;
}

/* Layer 1: Base angled shape (bottom layer) */
.hero-left-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/img/heroSection-left.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Layer 2: Background pattern (middle layer) */
.hero-left-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/img/heroSection-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8; /* Adjust transparency to blend with base layer */
  z-index: 2;
}

/* Desktop only - Extend the angled shape into right section
@media (min-width: 1024px) {
  .hero-left-section::before {
    width: 740px; /* Use viewport width for precise extension */
    /* right: -25vw; Position to extend into right section */
    /* clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%); Create precise angle that touches top */
    /* transform: none; Remove skew, use clip-path instead */
  /* } */
  
  /* .hero-left-section::after { */
    /* width: 600px; Match the base layer extension */
    /* right: -25vw; */
    /* clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%); Same angle as base */
    /* transform: none; Remove skew, use clip-path instead */
  /* } */
/* } */



/* Desktop Extensions - Only 3 clean breakpoints */
@media (min-width: 769px) and (max-width: 1199px) {
  /* Medium screens: tablets, small laptops */
  .hero-left-section::before {
    width: 58vw;
    transform: none;
  }
  
  .hero-left-section::after {
    width: 600px;
    transform: none;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .story-image {
    width: 1000px;
  }
  /* Large screens: most laptops, small desktops */
  .hero-left-section::before {
      width: 115%;
      transform: none;
  }
  
  .hero-left-section::after {
    width: 700px;
    transform: none;
  }
}

@media (min-width: 1600px) {
  /* Extra large screens: large desktops, ultrawide */
  .hero-left-section::before {
      width: 74vw;
      transform: none;
  }
  
  .hero-left-section::after {
    width: 900px;
    transform: none;
  }

  .story-image {
    width: 1000px  !important;
  }
}



/* Layer 3: Content (top layer) */
.hero-left-content {
  position: relative;
  z-index: 10; /* Highest z-index for content */
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo */
.hero-logo-section {
  /* margin-bottom: 2rem; */
}

.hero-logo {
  width: 200px;
  height: 169px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Add shadow for better visibility */
}

/* Text content */
.hero-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: 'Poppins-ExtraBold', sans-serif;
  font-size: 80px;
  font-weight: 800;
  line-height: 80px;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add shadow for better readability */
}

.hero-title-matters {
  display: block;
}

.hero-description-main {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-description-sub {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* RIGHT SECTION - Hero Image */
.hero-right-section {
  /* flex: 1; */
  background: #000;
  position: relative;
  z-index: 1; /* Lower than left section extension */
}

.hero-image-container {
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 625px;
  height: 100%;
  object-fit: cover; /* Changed from cover to contain */
}

/* =================================
   MOBILE STYLES (768px and below)
   ================================= */

@media (max-width: 760px) {
    /* Hide desktop layout on mobile */
    .hero-left-section,
    .hero-right-section {
        display: none;
    }

    /* Mobile Hero Section - Vertical Stack */
    .hero-section {
        display: flex;
        flex-direction: column;
        min-height: 110vh;
        position: relative;
    }

    /* Mobile Section 1: Logo with Orange Background */
    .mobile-logo-section {
        background: #FF4A00;
        padding: 80px 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
    }

    .mobile-logo {
        width: 140px;
    }

    .mobile-logo img {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    /* Mobile Section 2: Image with Social Sidebar */
    .mobile-image-section {
        background: #000;
        position: relative;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-image-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-hero-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        object-fit: contain;
    }

    /* Mobile Section 3: Text with Orange Background and Pattern */
    .mobile-text-section {
        background: #FF4A00;
        position: relative;
        padding: 50px 10px;
        min-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 15px;
    }

    /* Background pattern for mobile text section */
    .mobile-text-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../../assets/img/heroSection-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.8;
        z-index: 1;
    }

    .mobile-text-content {
        position: relative;
        z-index: 2;
        color: white;
        text-align: start;
        max-width: 500px;
    }

    .mobile-hero-title {
        font-family: 'Poppins-ExtraBold', sans-serif;
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 50px;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .mobile-hero-title-matters {
        display: block;
    }

    .mobile-hero-description-main {
        font-size: 18px;
        font-weight: 400;
        margin-bottom: 1rem;
        line-height: 1.6;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .mobile-hero-description-sub {
        font-size: 18px;
        opacity: 0.9;
        line-height: 1.6;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
}

/* Tablet adjustments */
@media (max-width: 768px) and (min-width: 391px) {
    .mobile-logo {
        width: 180px;
    }
    
    .mobile-hero-image {
        max-width: 450px;
    }
    
    .mobile-hero-title {
        font-size: 50px;
    }
}

/* Small mobile adjustments */
@media (max-width: 390px) {
    .hero-section {
        min-height: 120vh;
    }
    /* .mobile-logo-section {
        padding: 1.5rem 1rem;
        min-height: 100px;
    } */
    
    .mobile-logo {
        width: 140px;
    }
    
    .mobile-text-section {
        padding: 50px 10px;
    }
    
    .mobile-hero-title {
        font-size: 50px;
    }
    
    .mobile-hero-description-main,
    .mobile-hero-description-sub {
        font-size: 16px;
    }
    
    .social-sidebar {
        width: 50px;
        height: 140px;
        right: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 360px) {
    .hero-section {
        min-height: 100vh;
    }

    .mobile-logo {
        width: 120px;
    }
    
    .mobile-hero-title {
        /* font-size: 1.8rem; */
    }
    
    .mobile-text-section {
        padding: 20px 10px;
        min-height: 50vh;
    }
    
    .mobile-hero-description-main,
    .mobile-hero-description-sub {
        font-size: 16px;
    }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 769px) {
    .mobile-logo-section,
    .mobile-image-section,
    .mobile-text-section {
        display: none;
    }
}

/* Social Media Sidebar */
.social-sidebar {
    position: absolute;
    top: 70%;
    right: 0;
    transform: translateY(-50%);
    width: 63px;
    height: 170px;
    background: #FF4A00;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    z-index: 10;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    border-radius: 50%;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Ensure hero section has relative positioning */
.hero-section {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-sidebar {
        width: 50px;
        height: 150px;
        /* right: 10px; */
        top: 50%;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 375px) {
    .mobile-text-section {
        padding: 200px 10px;
    }
    .social-sidebar {
        top: 48% !important;
    }
}

@media (max-width: 390px) {
    .social-sidebar {
        width: 50px;
        height: 150px;
        /* right: 10px; */
        top: 50%;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}











/* Story Section - Simple 50/50 Split with radial gradient background */
.story-section {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(89.6% 50.11% at 50% 50%, #040030 0%, #030027 28%, #010011 72%, #000000 100%);
  padding: 50px 0 0 0;
  margin: -5px auto;
}

/* LEFT SECTION - Image */
.story-left-section {
  flex: 1;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  /* padding: 2rem; */
}

.story-image-container {
  width: 100%;
  max-width: 500px;
}

.story-image {
    width: 53vw;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    /* aspect-ratio: 6 / 6; */
}

/* RIGHT SECTION - Content */
.story-right-section {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.story-right-content {
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  max-width: 600px;
  align-items: center;
}

/* Title */
.story-title {
  font-family: 'Poppins-ExtraBold', sans-serif;
  font-size: 50px;
  font-weight: 800;
  line-height: 60px;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-title-save {
  display: block;
}

/* Subtitle */
.story-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Speech Bubble Wrapper */
.speech-bubble-container {
  position: relative;
  width: 100%;
  max-width: 700px; /* control desktop size */
  margin: 0 auto;
}

.speech-bubble {
  background: url("../img/story-textbox.png") no-repeat center center;
  background-size: contain;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 6; /* adjust based on your vector's proportion */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

/* Place textarea inside the bubble */
.story-textarea {
  width: 90%;
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
  font-family: inherit;
  text-align: left;
}

.story-textarea::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

/* Character Counter */
.character-counter-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.character-counter {
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
  transition: color 0.3s ease;
}

.character-counter.over-limit {
  color: #ef4444;
}

/* Error Message */
.error-message {
  color: #ef4444;
  font-size: 14px;
  margin: 0;
}

/* Submit Button - FIXED SIZE */
.submit-button {
  font-family: 'Poppins';
  background: #2563EB;
  color: white;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  height: 48px; /* FIXED HEIGHT */
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.submit-button:hover:not(:disabled) {
  background: #004AD6;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button content positioning */
#buttonText,
#storyLoadingContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading container specific styles */
.story-loading-container {
  gap: 8px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =================================
   STORY SECTION MOBILE STYLES
   ================================= */

@media (max-width: 768px) {
    .story-section {
        flex-direction: column;
        min-height: auto;
        padding: 40px 0;
    }

    /* .speech-bubble {
      background: url("../img/story-textbox-mobile.png") no-repeat center center;
      background-size: contain;
      width: 95vw;
      height: 26vh;
      padding: 8px 0 0 0;
    } */
    
    /* Image section - Now on top */
    .story-left-section {
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    
    .story-image-container {
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: center;
    }
    
    .story-image {
        width: 900px;
        max-width: 450px;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        position: relative;
        left: 12%;
    }
    
    /* Content section - Now below */
    .story-right-section {
        order: 2;
        padding: 1.5rem;
    }
    
    .story-right-content {
        max-width: 600px;
        align-items: start;
        /* margin: 0 auto; */
    }
    
    .story-title {
        font-size: 2.5rem;
        text-align: start;
        letter-spacing: 1px;
    }
    
    .story-subtitle {
        text-align: start;
        font-size: 1rem;
    }
    
    .speech-bubble-container {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .story-textarea {
        font-size: 15px;
    }
    
    .submit-button {
        width: 100%;
        max-width: 280px;
        align-self: center;
    }
}

/* Tablet (768px and below, above 391px) */
@media (max-width: 768px) and (min-width: 391px) {
    .story-left-section {
        /* padding: 2.5rem 2rem; */
    }
    
    .story-image {
        max-width: 800px;
    }
    
    .story-right-section {
        padding: 15px 0 40px 10px;
    }
    
    .story-title {
        font-size: 30px;
        line-height: 1.2;
    }
    
    .story-subtitle {
        font-size: 18px;
    }
    
    .speech-bubble-container {
        max-width: 600px;
    }
    
    .story-textarea {
        font-size: 16px;
    }
    
    .submit-button {
        max-width: 240px;
        height: 42px;
    }
}

/* Small mobile (390px and below, above 361px) */
@media (max-width: 390px) {
    .story-left-section {
        padding: 1.5rem 1rem;
    }
    
    .story-image {
        max-width: 760px;
        left: 14%;
    }
    
    .story-right-section {
        padding: 1rem;
    }
    
    .story-title {
        font-size: 30px;
        line-height: 1.2;
    }
    
    .story-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .speech-bubble-container {
        max-width: 450px;
    }

    /* .speech-bubble {
      width: 92vw;
              height: 32vh;
      padding: 8px 0 0 0;
    } */
    
    .story-textarea {
        font-size: 14px;
        /* padding: 8px 0 0 0; */
    }
    
    .submit-button {
        max-width: 250px;
        font-size: 18px;
        padding: 10px 24px;
        height: 44px;
    }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
    .story-section {
      margin: 70px 0 0 0;
    }

    .story-left-section {
        padding: 1rem 0.8rem;
    }
    
    .story-image {
        max-width: 800px;
    }
    
    .story-right-section {
        padding: 0.8rem;
    }
    
    .story-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .story-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .speech-bubble-container {
        max-width: 400px;
    }
    
    .story-textarea {
        font-size: 14px;
        /* padding: 12px 0 0 0; */
    }
    
    .submit-button {
        max-width: 220px;
        font-size: 18px;
        padding: 8px 20px;
        height: 40px;
    }

    /* .speech-bubble {
      width: 92vw;
      padding: 8px 0 0 0;
    } */
}


/* Base speech bubble (768px and below) */
@media (max-width: 768px) {
    .speech-bubble {
        background: url("../img/story-textbox-mobile.png") no-repeat center center;
        background-size: contain;
        width: min(92vw, 400px);
        min-height: 220px;
        height: auto; /* Auto height based on content */
        /* padding: 20px 25px 25px 25px; Proper padding for text containment */
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: flex-start; /* Align content to top */
        justify-content: center;
    }
    
    /* Ensure textarea fits within bubble */
    .story-textarea {
        width: 100%;
        resize: none;
        border: none;
        background: transparent;
        font-size: 15px;
        line-height: 1.4;
        box-sizing: border-box;
        padding: 0 5px;
        margin: 0;
        vertical-align: top; /* Ensure text starts from top */
    }
}

/* ADD THIS: Missing range for tablets/large phones - 431px to 768px */
@media (min-width: 431px) and (max-width: 768px) {
    .speech-bubble {
        /* padding: 30px 40px 45px 40px !important; */
        width: min(96vw, 400px);
        height: 240px;
    }
    
    .story-textarea {
        height: 140px !important;
    }
}

/* ADD THIS: Specific fix for 470-500px problematic range */
@media (min-width: 470px) and (max-width: 500px) {
    .speech-bubble {
        padding: 28px 35px 42px 35px !important;
    }
    
    .story-textarea {
        height: 135px !important;
    }
}

/* @media (max-width: 768px) {
    .speech-bubble {
        padding: 25px 30px 35px 30px !important;
    }
    
    .story-textarea {
        height: 120px !important;
    }
} */

/* iPhone 14 Pro Max - 430px */
@media (min-width: 391px) and (max-width: 430px) {
    .speech-bubble {
        width: min(96vw, 440px) !important;
        min-height: 240px !important;
        /* padding: 18px 22px 22px 22px !important; */
    }
    
    .story-textarea {
        font-size: 15px !important;
    }
}

/* iPhone 12 Pro/13 - 390px */
@media (min-width: 376px) and (max-width: 390px) {
    .speech-bubble {
        width: min(92vw, 360px) !important;
        min-height: 220px !important;
        /* padding: 16px 20px 20px 20px !important; */
    }
    
    .story-textarea {
        height: 100% !important;
        font-size: 16px !important;
    }
}

/* iPhone SE - 375px */
@media (min-width: 361px) and (max-width: 375px) {
    .speech-bubble {
        width: min(92vw, 350px) !important;
        min-height: 220px !important;
        /* padding: 15px 18px 18px 18px !important; */
    }
    
    .story-textarea {
        /* height: 95px !important; */
        font-size: 15px !important;
    }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
    .speech-bubble {
        width: min(92vw, 350px) !important;
        min-height: 220px !important;
        /* padding: 14px 16px 16px 16px !important; */
    }
    
    .story-textarea {
        font-size: 15px !important;
    }
}









/* Button Container for Desktop/Mobile Layout */
.story-buttons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Read Stories Button */
.read-stories-button {
    font-family: 'Poppins';
    background: #FF4A00;
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
    height: 48px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.read-stories-button:hover {
    background: #E63E00;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 74, 0, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.stories-modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.modal-header {
    background: #FFFFFF;
    color: #FF4A00;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Poppins-ExtraBold', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: black;
    transition: transform 0.2s ease;
}

/* Modal Content */
.modal-content {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* Stories List */
.stories-list {
    padding: 0;
}

.story-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.story-item:hover {
    background-color: #f9fafb;
}

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

.story-text {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    font-family: 'Poppins', sans-serif;
}

.story-timestamp {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: end;
}

/* .story-timestamp::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
} */

/* Loading State */
.stories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.stories-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #FF4A00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Empty State */
.stories-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.stories-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Error State */
.stories-error {
    text-align: center;
    padding: 3rem 2rem;
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-buttons-container {
        flex-direction: column;
        width: 100%;
    }

    .read-stories-button,
    .submit-button {
        width: 100%;
        max-width: 280px;
        font-size: 18px;
        height: 40px;
    }

    .stories-modal {
        width: 95%;
        max-height: 85vh;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-close svg {
        width: 18px;
        height: 18px;
    }

    .story-item {
        padding: 1rem 1.5rem;
    }

    .story-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 390px) {
    .stories-modal {
        width: 98%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 0.875rem 1rem;
    }

    .story-item {
        padding: 0.875rem 1rem;
    }
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}