/* Norman Theme - Post Prop Styles */

/* Post Prop Container */
.post-prop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-prop.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Post Prop Shadow */
.post-prop-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(13, 11, 8, 0.8) 0%,
    rgba(13, 11, 8, 0.6) 50%,
    rgba(13, 11, 8, 0.4) 100%
  );
  backdrop-filter: blur(20px);
  z-index: 1;
}

/* Post Prop Inner Container */
.post-prop-inner {
  position: relative;
  background: var(--bg-secondary);
  backdrop-filter: var(--panel-backdrop);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 680px;
  max-height: 80vh;
  width: calc(100vw - 80px);
  height: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Prop Header */
.prop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.prop-back {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.prop-back:hover {
  color: var(--text-primary);
}

.prop-eyebrow-head {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* Prop Body Wrapper */
.prop-body-wrap {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Prop Eyebrow */
.prop-eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Prop Title */
.prop-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Prop Byline */
.prop-byline {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Prop Rule */
.prop-rule {
  width: 60px;
  height: 2px;
  background: var(--accent-primary);
  margin-bottom: 32px;
}

/* Prop Text Content */
.prop-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Drop Capital First Letter */
.prop-text::first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--accent-primary);
  font-weight: 300;
}

/* Prop Text Typography */
.prop-text p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.prop-text p:last-child {
  margin-bottom: 0;
}

.prop-text h1,
.prop-text h2,
.prop-text h3,
.prop-text h4,
.prop-text h5,
.prop-text h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  color: var(--text-primary);
  margin: 2em 0 1em 0;
}

.prop-text h1 {
  font-size: 32px;
}

.prop-text h2 {
  font-size: 28px;
}

.prop-text h3 {
  font-size: 24px;
}

.prop-text h4 {
  font-size: 20px;
}

.prop-text h5 {
  font-size: 18px;
}

.prop-text h6 {
  font-size: 16px;
}

.prop-text blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prop-text ul,
.prop-text ol {
  margin: 1.5em 0;
  padding-left: 30px;
}

.prop-text li {
  margin-bottom: 0.5em;
}

.prop-text a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.prop-text a:hover {
  color: var(--accent-warm);
  text-decoration: underline;
}

.prop-text em,
.prop-text i {
  font-style: italic;
}

.prop-text strong,
.prop-text b {
  font-weight: 500;
}

.prop-text code {
  background: rgba(242, 234, 217, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Instrument Sans', monospace;
  font-size: 0.9em;
}

.prop-text pre {
  background: rgba(242, 234, 217, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prop-text pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Loading State */
.post-prop.loading .prop-text {
  opacity: 0.6;
  position: relative;
}

.post-prop.loading .prop-text::after {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Error State */
.post-prop.error .prop-text {
  color: var(--text-secondary);
  font-style: italic;
}

.post-prop.error .prop-text::before {
  content: 'Error loading content. ';
  color: var(--accent-primary);
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-prop-inner {
    width: calc(100vw - 40px);
    max-width: none;
  }
  
  .prop-head {
    padding: 16px 20px;
  }
  
  .prop-body-wrap {
    padding: 24px 28px;
  }
  
  .prop-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  
  .prop-text {
    font-size: 16px;
  }
  
  .prop-text::first-letter {
    font-size: 3.5em;
  }
}

@media (max-width: 480px) {
  .post-prop-inner {
    width: calc(100vw - 24px);
    margin: 12px;
  }
  
  .prop-head {
    padding: 12px 16px;
  }
  
  .prop-body-wrap {
    padding: 20px 24px;
  }
  
  .prop-title {
    font-size: clamp(20px, 6vw, 32px);
  }
  
  .prop-text {
    font-size: 15px;
  }
  
  .prop-text::first-letter {
    font-size: 3em;
  }
  
  .prop-text h1 {
    font-size: 28px;
  }
  
  .prop-text h2 {
    font-size: 24px;
  }
  
  .prop-text h3 {
    font-size: 20px;
  }
}

/* Animation Performance */
.post-prop {
  will-change: opacity, transform;
}

.post-prop-shadow {
  will-change: opacity;
}

.post-prop-inner {
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .post-prop {
    transition: none;
  }
  
  .post-prop.active {
    transform: translateY(0);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .post-prop-inner {
    border-width: 2px;
  }
  
  .prop-rule {
    height: 3px;
  }
}

/* Print Styles */
@media print {
  .post-prop {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
    background: white;
    color: black;
  }
  
  .post-prop-shadow {
    display: none;
  }
  
  .post-prop-inner {
    border: none;
    background: white;
    box-shadow: none;
  }
  
  .prop-back {
    display: none;
  }
  
  .prop-text {
    color: black;
  }
  
  .prop-text a {
    color: #0000EE;
    text-decoration: underline;
  }
}
