/* PromptSaar mobile footer centering + mobile post action grid */

/* Desktop/tablet post actions remain clean with three buttons. */
@media(min-width:768px){
  .post-card .ps-mobile-post-actions{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  .post-card .ps-mobile-post-actions .post-action{
    min-height:42px !important;
  }

  .post-card .ps-mobile-post-actions svg{
    width:17px !important;
    height:17px !important;
  }
}

/* Mobile post action style */
@media(max-width:767px){
  .post-card .prompt-head > #copyBtn{
    display:none !important;
  }

  .post-card .ps-mobile-post-actions{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    width:100% !important;
    padding-top:14px !important;
    border-top:1px solid #e5e7eb !important;
  }

  .post-card .ps-mobile-post-actions .post-action,
  .post-card .ps-mobile-post-actions #copyBtn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:52px !important;
    margin:0 !important;
    padding:9px 8px !important;
    border:1px solid #dfe2e7 !important;
    border-radius:13px !important;
    background:#fff !important;
    box-shadow:0 3px 9px rgba(20,23,34,.035) !important;
    color:#25282f !important;
    font-size:13px !important;
    font-weight:820 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:visible !important;
  }

  .post-card .ps-mobile-post-actions #copyBtn{
    border-color:var(--accent,#ff6b2c) !important;
    background:var(--accent,#ff6b2c) !important;
    box-shadow:0 8px 18px rgba(255,107,44,.24) !important;
    color:#fff !important;
  }

  .post-card .ps-mobile-post-actions svg{
    width:20px !important;
    height:20px !important;
    flex:0 0 20px !important;
  }

  .post-card .ps-mobile-post-actions strong{
    font:inherit !important;
    font-weight:850 !important;
  }

  .post-card .ps-mobile-post-actions .active{
    border-color:rgba(255,107,44,.48) !important;
    background:#fff7f2 !important;
    color:var(--accent,#ff6b2c) !important;
  }

  .post-card .ps-mobile-post-actions .active svg path{
    fill:currentColor !important;
  }

  /* Premium footer links centered and balanced on mobile. */
  .ps-premium-footer .ps-footer-links{
    width:min(100%,390px) !important;
    margin:0 auto !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    justify-items:center !important;
    gap:28px 18px !important;
  }

  .ps-premium-footer .ps-footer-column{
    width:min(100%,150px) !important;
    justify-self:center !important;
    text-align:left !important;
  }

  .ps-premium-footer .ps-footer-column h3{
    width:100% !important;
    text-align:left !important;
  }

  .ps-premium-footer .ps-footer-column a{
    width:100% !important;
    justify-content:flex-start !important;
  }

  .ps-premium-footer .ps-footer-column:last-child{
    grid-column:1/-1 !important;
    justify-self:center !important;
  }
}

@media(max-width:380px){
  .post-card .ps-mobile-post-actions{
    gap:8px !important;
  }

  .post-card .ps-mobile-post-actions .post-action,
  .post-card .ps-mobile-post-actions #copyBtn{
    min-height:49px !important;
    padding:8px 5px !important;
    gap:5px !important;
    font-size:11.5px !important;
  }

  .post-card .ps-mobile-post-actions svg{
    width:18px !important;
    height:18px !important;
    flex-basis:18px !important;
  }

  .ps-premium-footer .ps-footer-links{
    gap:26px 10px !important;
  }

  .ps-premium-footer .ps-footer-column{
    width:min(100%,135px) !important;
  }
}