/* =========================================
   ARTICLE & UPDATES SPECIFIC STYLES
   ========================================= */

/* Updates (Small containers on index/full list) */
.myupdates {
  display: flex;
  flex-direction: column;
  min-width: 15rem;
  position: relative;
  border: 1px solid rgba(138, 81, 245, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.myupdates:hover {
  transform: translateY(-5px);
  border-color: var(--gradient-color4);
  box-shadow: 0 5px 25px rgba(86, 195, 234, 0.2);
}

.myupdatesform {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-width: 15rem;
}

.breadtext.upd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
  padding-bottom: 8rem;
}

/* Images in articles/galleries */
.articleimg, #ytplayer {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem auto;
}

.articleimg.rounded { max-height: 465px; }
img.articleimg.rounded.allofme { max-height: 100%; }

/* Article/Post Viewer (Terminal Style) */
.file-viewer {
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid var(--gradient-color1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  position: relative;
  max-width: 90rem;
  margin: 0 auto;
}

.file-header {
  background: rgba(138, 81, 245, 0.15);
  border-bottom: 1px solid var(--gradient-color1);
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.system-text, .file-id { font-size: 0.85rem; color: var(--gradient-color4); letter-spacing: 0.1rem; text-transform: uppercase; }
.status-active { color: #0f0; animation: blink 2s infinite; }

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  padding: 3rem;
}

.headline {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(138, 81, 245, 0.6);
}

.ingress {
  font-size: 1.3rem;
  line-height: 1.6;
  border-left: 3px solid var(--gradient-color4);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.article-content { font-size: 1.1rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.article-content p { margin-bottom: 1.5rem; text-transform: none; }

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-shadow: 0 0 5px rgba(138, 81, 245, 0.4);
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: square;
    color: var(--gradient-color4);
}

.article-content li {
    margin-bottom: 0.5rem;
    text-transform: none;
}

.article-content a {
    color: var(--gradient-color4);
    text-decoration: underline;
    text-transform: none;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--brightwhite);
    text-shadow: 0 0 10px var(--gradient-color4);
}

.image-frame { border: 1px dashed var(--reading); padding: 0.5rem; background: rgba(0,0,0,0.3); }
.image-frame img { width: 100%; height: auto; display: block; filter: sepia(20%) contrast(110%); transition: filter 0.3s ease; }
.image-frame img:hover { filter: none; }

.file-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0 1rem; }
.small-btn { padding: 0.4rem 1rem; font-size: 0.8rem; text-transform: uppercase; }

.file-footer { padding: 1rem; text-align: right; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); }
.separator { height: 1px; background: linear-gradient(90deg, var(--gradient-color4), transparent); margin: 2rem 0; opacity: 0.5; }

/* Transmission Box */
.transmission-box {
  background: rgba(20, 20, 25, 0.85); border-left: 4px solid var(--gradient-color1);
  padding: 0; max-width: 80rem; margin: 0 auto 3rem auto; overflow: hidden; backdrop-filter: blur(10px);
}
.transmission-header { background: rgba(138, 81, 245, 0.2); color: var(--gradient-color4); padding: 0.5rem 1.5rem; font-size: 0.9rem; letter-spacing: 0.1rem; border-bottom: 1px solid rgba(138, 81, 245, 0.3); }
.transmission-content { padding: 2rem; }
.transmission-content h2 { font-family: "Saira Condensed", sans-serif; color: var(--white); font-size: 1.7rem; margin-bottom: 1rem; text-shadow: 2px 2px var(--shadow-color); }
.meta-data { font-size: 0.8rem; color: var(--gradient-color4); opacity: 0.8; }

/* 11. NARRATIVE ARTICLE COMPONENTS */
.reading-width { max-width: 800px; margin: 0 auto; }
.dropcap::first-letter { font-size: 4rem; float: left; line-height: 1; padding-right: 0.5rem; color: var(--gradient-color1); font-weight: 800; }

.quote-block { border-left: 5px solid var(--gradient-color1); padding: 2rem; margin: 3rem 0; background: rgba(138, 81, 245, 0.05); font-style: italic; font-size: 1.2rem; }

.interstitial-image { margin: 4rem 0; position: relative; }
.interstitial-image img { width: 100%; border-radius: 0.5rem; }
.caption { font-size: 0.8rem; text-transform: uppercase; color: var(--gradient-color4); margin-top: 0.5rem; letter-spacing: 0.1rem; }
.chapter-heading { font-size: 0.9rem; color: var(--gradient-color4); text-transform: uppercase; letter-spacing: 0.4rem; margin-bottom: 1rem; display: block; }

.terminal-block {
    background: rgba(0, 0, 0, 0.8);
    border-left: 3px solid #00ff41;
    padding: 1.5rem;
    margin: 2.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.terminal-block pre {
    margin: 0;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    white-space: pre-wrap;
    text-transform: none;
    font-size: 1rem;
}

.terminal-block::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.system-note {
    background: rgba(138, 81, 245, 0.1);
    border: 1px solid var(--gradient-color1);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 4px;
    position: relative;
}

.note-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--gradient-color4);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.note-warning {
    border-color: #ffd740;
    background: rgba(255, 215, 64, 0.05);
}
.note-warning .note-label { color: #ffd740; }

.note-corrupted {
    border-color: #ff5252;
    background: rgba(255, 82, 82, 0.05);
    animation: article-pulse-red 2s infinite;
}
.note-corrupted .note-label { color: #ff5252; }

@keyframes article-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.pullquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--brightwhite);
    border: none;
    padding: 1.5rem 2.5rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    text-transform: none;
    background: rgba(255, 255, 255, 0.03);
}

.pullquote::before, .pullquote::after {
    content: "[[";
    color: var(--gradient-color4);
    font-weight: bold;
    font-style: normal;
    font-size: 2rem;
    opacity: 0.6;
}
.pullquote::after { content: "]]"; }

/* MEDIA QUERIES FOR ARTICLES */
@media screen and (max-width: 930px) {
  .transmission-box { margin: 0 1rem 2rem 1rem; }
  .breadtext.upd { grid-template-columns: 1fr; padding-bottom: 4rem; }
  .myupdates { background: linear-gradient(180deg, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.6) 100%); padding: 1.5rem; border-radius: 1rem; }
}

@media screen and (max-width: 900px) {
  .grid-layout { grid-template-columns: 1fr; padding: 1.5rem; }
  .file-visuals { order: -1; margin-bottom: 2rem; }
  .headline { font-size: 2.2rem; }
  .ingress { font-size: 1.1rem; padding-left: 1rem; }
}

@media screen and (max-width: 429px) {
  .transmission-box { margin: 0 1rem 2rem 1rem; }
  .transmission-content { padding: 1rem; }
  .transmission-content h2 { font-size: 1.3rem; }
  article.breadtext.upd { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .myupdates { margin: 0 1rem; }
}
