/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 /*
 * app/assets/stylesheets/application.css
 *= require inter-font
 *= require_tree .
 *= require_self
 *= require daisyui.min
 */
 
.prose h1 {
  font-size: 2.25rem;
}
.prose h2 {
  font-size: 1.875rem;
}
.prose h3 {
  font-size: 1.5rem;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
  
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

trix-toolbar {
  position: sticky;
  top: 0px;
  z-index: 1000;
  padding: 0px;
}

trix-editor#post_content {
  min-height: 66px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-sizing: border-box;
}

.short-post .trix-button-group--text-tools,
.short-post .trix-button-group--block-tools {
  display: none !important;
}

.trix-button-group--file-tools {
  margin-left: 0 !important;
}

.trix-button-group--block-tools {
  display: none !important;
}

.trix-content figure figcaption {
  display: none;
}

.trix-content figure img {
  padding-top: 10px !important;
}

a.show-more {
  color: #7fcaf8;
  text-decoration: none;
}

a.show-more:hover,
a.show-more:active {
  color: #1DA1F2;
  text-decoration: underline;
}

div.trix-content a:not(.post_link) {
  color: #1DA1F2;
  text-decoration: none;
}

div.trix-content a:not(.post_link):hover,
div.trix-content a:not(.post_link):active {
  text-decoration: underline;
}

div.trix-content a:not(.post_link):hover {
  color: #1A91DA;
}

div.trix-content a:not(.post_link):active {
  color: #0C7ABF;
}

div.trix-content a:not(.post_link):focus {
  outline: 2px solid #1DA1F2;
  outline-offset: 2px;
}

a.blue {
  color: #1DA1F2;
  text-decoration: none;
}

a.blue:hover,
a.blue:active {
  text-decoration: underline;
}

a.blue:hover {
  color: #1A91DA;
}

a.blue:active {
  color: #0C7ABF;
}

a.blue:focus {
  outline: 2px solid #1DA1F2;
  outline-offset: 2px;
}

#unread-count {
  transform: translate(50%, -50%);
}

/* like animate */
.animate-bounce {
  animation: bounce 0.5s ease-in-out;
}

.like-fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

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

/* Hotwire app */
.content { margin-top: 56px; }
.menu-overlay.active { display: block; }
.menu-panel.translate-x-0 { transform: translateX(0); }
@media (prefers-color-scheme: dark) {
  .header { background-color: #1a1a1a; }
  .header input { color: #e0e0e0; border-color: #333; }
  .menu-panel { background-color: #1a1a1a; }
  .menu-panel a { color: #e0e0e0; }
}

/* Logo size */
.logo { width: 55px !important; height: 45px !important; }

/* Vip post */
.paywall {
  position: relative;
  min-height: 60vh;
  border-radius: 16px;
  overflow: hidden;
}

.preview {
  filter: blur(4px);
  pointer-events: none;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30); 
  border-radius: inherit;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}

.unlock-btn {
  background: #0066ff;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.unlock-btn:hover {
  transform: scale(1.05);
}

.paid-content-badge {
  display: inline-flex;
  align-items: center;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.unlocked-content-badge {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}