/* =========================
   SHARED PAGE HEADER
   ========================= */
.page-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-header--teal,
.page-header--green {
    background-color: var(--bg-card);
}

.page-header--teal {
    border-bottom: 6px dashed var(--alac-teal);
}

.page-header--teal h1 {
    color: var(--alac-teal);
}

.page-header--green {
    border-bottom: 6px dashed var(--alac-green);
}

.page-header--green h1 {
    color: var(--alac-green);
}

.page-header--red {
    margin-bottom: 4rem;
}

.page-header--red h1 {
    display: inline-block;
    border-bottom: 8px solid var(--alac-red);
    padding-bottom: 10px;
}

.page-header--red p {
    margin-top: 1.5rem;
}

/* =========================
   ABOUT PAGE
   ========================= */
.story-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.story-block.reverse {
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--alac-teal);
    margin-bottom: 1.5rem;
}

.story-block:nth-child(even) .story-text h2 {
    color: var(--alac-green);
}

.story-block.is-red .story-text h2 {
    color: var(--alac-red);
}

.story-media {
    flex: 1;
    position: relative;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-card);
    border: 4px dashed var(--border-color);
    box-shadow: 12px 12px 0 var(--alac-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-size: 1.5rem;
    color: var(--text-main);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

html[data-theme="light"] .img-placeholder {
    box-shadow: 12px 12px 0 #ccc;
}

.img-placeholder:hover {
    transform: translate(-4px, -4px);
}

.img-placeholder--teal { border-color: var(--alac-teal); }
.img-placeholder--green { border-color: var(--alac-green); }
.img-placeholder--red { border-color: var(--alac-red); }

.story-media::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border-top: 6px solid var(--alac-red);
    border-left: 6px solid var(--alac-red);
    z-index: 10;
}

.story-block.reverse .story-media::before {
    left: auto;
    right: -15px;
    border-left: none;
    border-right: 6px solid var(--alac-green);
    border-top: 6px solid var(--alac-green);
}

.values-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 6px dashed var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    box-shadow: 6px 6px 0 var(--alac-dark);
}

html[data-theme="light"] .value-card {
    box-shadow: 6px 6px 0 #ccc;
}

.value-card--teal { border-top: 8px solid var(--alac-teal); }
.value-card--green { border-top: 8px solid var(--alac-green); }
.value-card--red { border-top: 8px solid var(--alac-red); }

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .story-block,
    .story-block.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .story-media::before {
        display: none;
    }
}

/* =========================
   MEMBERS INDEX
   ========================= */
.backroom-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 6px dashed var(--border-color);
    margin-bottom: 3rem;
    background-color: var(--alac-dark);
    color: white;
    box-shadow: 8px 8px 0 var(--alac-teal);
}

html[data-theme="light"] .backroom-header {
    background-color: var(--alac-dark);
    color: white;
    box-shadow: 8px 8px 0 var(--alac-teal);
}

.backroom-header h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 3px 3px 0 var(--alac-red);
    margin-bottom: 0.5rem;
}

.notice-board {
    background-color: #fff9c4;
    color: #333;
    padding: 1.5rem;
    border: 3px solid #333;
    box-shadow: 6px 6px 0 var(--alac-red);
    margin-bottom: 4rem;
    transform: rotate(-1deg);
}

html[data-theme="dark"] .notice-board {
    background-color: #4a452a;
    color: #e0e0e0;
    border-color: #121212;
}

.notice-board h2 {
    font-size: 2rem;
    color: var(--alac-red);
    margin-bottom: 0.5rem;
    text-shadow: none;
    border-bottom: 2px dashed var(--alac-red);
    display: inline-block;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card-link-btn {
    display: inline-block;
    background: var(--alac-dark);
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.3rem;
    border: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    margin-top: 1rem;
}

html[data-theme="light"] .card-link-btn {
    background: var(--bg-main);
    color: var(--alac-dark);
    border-color: var(--alac-dark);
}

.card-link-btn:hover {
    background: var(--alac-teal);
    color: var(--bg-main);
    transform: translate(2px, 2px);
}

.badge-placeholder {
    display: inline-block;
    width: 88px;
    height: 31px;
    background-color: var(--alac-teal);
    border: 2px solid var(--alac-dark);
    color: var(--alac-dark);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    line-height: 27px;
    margin-top: 10px;
}

/* =========================
   MEMBERS SUBMIT
   ========================= */
.step-number {
    display: inline-block;
    background-color: var(--alac-dark);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 var(--alac-teal);
}

html[data-theme="light"] .step-number {
    background-color: white;
    color: var(--alac-dark);
}

.step-card {
    margin-bottom: 2rem;
}

.code-block {
    background: #111;
    color: var(--alac-teal);
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid var(--border-color);
    display: inline-block;
    margin-top: 10px;
}

html[data-theme="light"] .code-block {
    background: #222;
}

/* =========================
   MEMBERS SUBMIT — CHECKLIST
   ========================= */
.checklist-section {
    margin-top: 3rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 2px dashed var(--border-color);
    cursor: pointer;
    font-size: 1.3rem;
}

.checklist-item:last-of-type {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--alac-teal);
    cursor: pointer;
}

.checklist-item label {
    cursor: pointer;
    font-size: 1.3rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-main);
    font-weight: normal;
    line-height: 1.4;
}

.checklist-item.checked label {
    text-decoration: line-through;
    opacity: 0.6;
}

.checklist-status {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 3px solid var(--border-color);
    text-align: center;
    font-size: 1.5rem;
    background: var(--bg-main);
    transition: all 0.3s;
}

.checklist-status.ready {
    border-color: var(--alac-teal);
    color: var(--alac-teal);
    background: var(--bg-card);
    box-shadow: 4px 4px 0 var(--alac-teal);
}

@media (prefers-reduced-motion: reduce) {
    .checklist-status { transition: none; }
}

/* =========================
   MEMBERS WEBRING
   ========================= */
.terminal-container {
    background-color: #111;
    color: var(--alac-green);
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    border: 3px solid var(--border-color);
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

html[data-theme="light"] .terminal-container {
    background-color: #222;
    color: #7bbf54;
    border-color: var(--alac-dark);
}

.terminal-container code {
    display: block;
    margin-bottom: 5px;
}

.lit-list {
    list-style: square;
    padding-left: 2rem;
    font-size: 1.4rem;
}

.lit-list li {
    margin-bottom: 10px;
}

.lit-list a {
    border-bottom: 2px solid var(--alac-teal);
}

.webring-embed {
    margin: 2rem 0;
    padding: 2rem;
    border: 2px dashed var(--alac-teal);
    text-align: center;
}

/* =========================
   CARD ACCENT VARIANTS
   ========================= */
.card.accent-red {
    border-top: 12px solid var(--alac-red);
}

.card.accent-border {
    border-top: 12px solid var(--border-color);
}

/* =========================
   UTILITIES
   ========================= */
.text-center { text-align: center; }
.mb-section { margin-bottom: 3rem; }
.stack-lg {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
