/* 
* Custom styles for the blog post page
* Based on InstantAIGuru main website styling
*/

/* Font face declarations */
@font-face {
    font-family: 'Roc Grotesk';
    src: url('fonts/fonnts.com-Roc_Grotesk_Wide.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roc Grotesk';
    src: url('fonts/fonnts.com-Roc_Grotesk_Wide_Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roc Grotesk';
    src: url('fonts/fonnts.com-Roc_Grotesk_Wide_Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'ABC Diatype';
    src: url('fonts/ABCDiatype-Regular.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'ABC Diatype';
    src: url('fonts/ABCDiatype-Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'ABC Diatype';
    src: url('fonts/ABCDiatype-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
  }
  
  /* Base styles */
  body {
    font-family: 'ABC Diatype', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    background-color: #050506;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 20px;
  }
  
  img {
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  }
  
  /* Centered image captions */
  .image-caption {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
    color: #CCCCCC;
    font-size: 0.9em;
  }
  
  h1 {
    font-size: 2.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-family: 'Roc Grotesk', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: left;
  }
  
  h2 {
    font-size: 2em;
    color: #FFFFFF;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: 'Roc Grotesk', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  
  h3 {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Roc Grotesk', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  
  p {
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 1rem;
    color: #FFFFFF;
  }
  
  ul, ol {
    text-align: left;
    margin: 20px 0;
    line-height: 1.5;
    padding-left: 2rem;
    color: #FFFFFF;
  }
  
  ul li, ol li {
    margin-bottom: 10px;
    color: #FFFFFF;
  }
  
  strong {
    color: #7F47FF;
    font-weight: 700;
  }
  
  hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
  }
  
  /* Base link styles */
  a {
    color: #7F47FF;
    text-decoration: none;
    transition: color 150ms ease;
    font-family: 'Roc Grotesk', sans-serif;
    font-weight: 500;
    position: relative;
  }
  
  a:hover {
    color: #FFFFFF;
  }
  
  a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #7F47FF;
    transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  a:hover::after {
    width: 100%;
  }
  
  /* Article link styles */
  p a {
    color: #7F47FF;
    text-decoration: none;
    position: relative;
    transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    display: inline-block;
  }
  
  p a:hover {
    color: #FFFFFF;
  }
  
  p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #7F47FF;
    transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  p a:hover::after {
    width: 100%;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    box-sizing: border-box;
  }
  
  /* Container - article */
  .container {
    max-width: 800px;
    margin: 20px auto 60px;
  }
  
  /* Blockquote styles */
  blockquote {
    position: relative;
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    margin: 32px 0;
    padding: 0 0 0 24px;
    border-left: 3px solid #7F47FF;
    color: rgba(255, 255, 255, 0.9);
  }
  
  blockquote p {
    font-family: 'ABC Diatype', Arial, sans-serif;
    font-weight: 500;
  }
  
  /* Emphasis styles */
  em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Special styles for image captions */
  p[style*="text-align: center"] {
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.95em;
  }
  
  /* Footer area styles */
  hr + p {
    margin-top: 20px;
    line-height: 1.7;
  }
  
  hr + p a {
    margin: 0 3px;
  }
  
  .callout {
    background-color: #211246;
    border-left: 4px solid white;
    padding: 1.5em 1.25em;
    margin: 2em 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  }

  .callout h2 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 600;
  }

  .callout p {
    margin: 0.5em 0 0 0;
  }

  /* Media Queries */
  @media (max-width: 768px) {
    body {
      padding-top: 20px;
    }
    
    .container {
      max-width: 100%;
      padding: 0 1.25rem;
      margin: 10px auto 40px;
    }
    
    h1 {
      font-size: 2em;
      line-height: 1.2;
      margin-bottom: 15px;
    }
    
    h2 {
      font-size: 1.8em;
      margin-top: 30px;
      margin-bottom: 15px;
    }
    
    h3 {
      font-size: 1.4em;
      margin-top: 25px;
      margin-bottom: 12px;
    }
    
    p {
      font-size: 1em;
      line-height: 1.5;
      margin-bottom: 1rem;
    }
    
    img {
      margin-bottom: 15px;
    }
    
    blockquote {
      font-size: 1.1rem;
      padding-left: 20px;
      margin: 20px 0;
    }
    
    ul, ol {
      padding-left: 1.5rem;
      margin: 15px 0;
    }
    
    ul li, ol li {
      margin-bottom: 8px;
    }
    
    hr {
      margin: 30px 0;
    }
    
    p[style*="text-align: center"] {
      margin-top: -5px;
      margin-bottom: 20px;
      font-size: 0.9em;
    }
    
    hr + p {
      margin-top: 15px;
      line-height: 1.6;
    }
  }
  
  @media (max-width: 480px) {
    body {
      padding-top: 15px;
    }
    
    .container {
      padding: 0 1rem;
      margin: 10px auto 30px;
    }
    
    h1 {
      font-size: 1.8em;
      line-height: 1.2;
    }
    
    h2 {
      font-size: 1.5em;
      margin-top: 25px;
    }
    
    h3 {
      font-size: 1.3em;
      margin-top: 20px;
    }
    
    p {
      font-size: 0.95em;
    }
    
    img {
      border-radius: 6px;
    }
    
    blockquote {
      font-size: 1rem;
      padding-left: 15px;
      margin: 18px 0;
    }
    
    p[style*="text-align: center"] {
      margin-top: -5px;
      margin-bottom: 18px;
      font-size: 0.85em;
    }
    
    hr + p {
      margin-top: 12px;
      line-height: 1.5;
      font-size: 0.9em;
    }
    
    hr + p a {
      display: inline-block;
      margin-top: 5px;
    }
  }