/* pages.css — shared styles for content pages (About, Contact, Privacy, etc.) */
/* Fonts loaded globally in _Layout.cshtml */

/* --- Page Wrapper --- */
.mayhem-page {
    background-color: var(--color-bg-dark);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    padding-top: 0;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.mayhem-page .container {
    position: relative;
    z-index: 1;
}

/* --- Page Header (scanline hero with glitch title) --- */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0015 0%, var(--color-bg-dark) 100%);
    border-bottom: 2px solid var(--color-accent);
}

.page-header-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanline-scroll 8s linear infinite;
}

@keyframes scanline-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header-tag {
    display: block;
    font-family: 'Exo 2', monospace;
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.page-header-sub {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--color-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

/* --- Glitch Title --- */
.glitch-title {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    margin: 0;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch-title::before {
    color: var(--color-accent);
    z-index: -1;
    animation: glitch-shift-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 60% 0);
}

.glitch-title::after {
    color: var(--color-primary);
    z-index: -1;
    animation: glitch-shift-2 2.5s infinite linear alternate-reverse;
    clip-path: inset(60% 0 0 0);
}

@keyframes glitch-shift-1 {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(-3px, 1px); }
    92% { transform: translate(2px, -1px); }
    93% { transform: translate(-1px, 2px); }
    94%, 100% { transform: translate(0); }
}

@keyframes glitch-shift-2 {
    0%, 85% { transform: translate(0); }
    86% { transform: translate(3px, -2px); }
    87% { transform: translate(-2px, 1px); }
    88% { transform: translate(1px, -1px); }
    89%, 100% { transform: translate(0); }
}

/* --- Terminal Panel --- */
.terminal-panel {
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 5, 15, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-family: 'Exo 2', monospace;
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-left: 8px;
    opacity: 0.6;
}

/* --- Windows Terminal Variant --- */
.terminal-panel.os-windows .terminal-header {
    justify-content: space-between;
}

.terminal-win-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-win-icon {
    font-size: 0.7rem;
    color: var(--color-accent);
    opacity: 0.5;
}

.terminal-win-buttons {
    display: flex;
    gap: 0;
}

.terminal-win-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease;
}

.terminal-win-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.terminal-win-btn.close:hover {
    background: #e81123;
    color: #fff;
}

/* --- Linux Terminal Variant --- */
.terminal-panel.os-linux .terminal-header {
    justify-content: space-between;
}

.terminal-linux-title {
    font-family: 'Exo 2', monospace;
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    opacity: 0.6;
    flex: 1;
    text-align: center;
}

.terminal-linux-buttons {
    display: flex;
    gap: 8px;
}

.terminal-linux-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-linux-btn .linux-btn-icon {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.terminal-body {
    padding: 1.5rem;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lists inside terminal panels */
.terminal-body ul,
.terminal-body ol {
    padding-left: 1.25rem;
    margin: 0;
}

.terminal-body li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-label {
    display: block;
    font-family: 'Exo 2', monospace;
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.terminal-field {
    margin-bottom: 1.25rem;
}

.terminal-input {
    width: 100%;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 2px;
    color: var(--text-light);
    font-family: 'Exo 2', monospace;
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    transition: all 0.3s ease;
    outline: none;
}

.terminal-input::placeholder {
    color: rgba(0, 255, 255, 0.2);
    font-style: italic;
}

.terminal-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2), inset 0 0 4px rgba(0, 255, 255, 0.05);
    background: rgba(0, 255, 255, 0.05);
}

textarea.terminal-input {
    resize: vertical;
    min-height: 120px;
}

.terminal-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0.75rem 0 0 0;
}

/* --- Transmit Button --- */
.btn-transmit {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.7rem 2rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-transmit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-transmit:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.1);
    color: #fff;
}

.btn-transmit:hover::before {
    left: 100%;
}

/* --- Signal Panels --- */
.signal-panel {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(0, 5, 15, 0.9);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signal-tag {
    display: block;
    font-family: 'Exo 2', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

.signal-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 0.4rem 0;
    letter-spacing: 1px;
}

.signal-desc {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* --- Old card styles (kept for pages not yet restyled) --- */
.mayhem-page .card {
    background: var(--panel-bg) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--card-radius) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--card-shadow);
}

.mayhem-page .card-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.mayhem-page .card-title.text-primary {
    color: var(--color-primary) !important;
}

.mayhem-page .card-title.text-info {
    color: var(--color-accent) !important;
}

.mayhem-page .list-group-item {
    border-bottom: 1px solid var(--panel-border) !important;
}

.mayhem-page .list-group-item:last-child {
    border-bottom: none !important;
}

.mayhem-page .list-group-item strong {
    color: var(--color-accent);
}

/* --- Site Footer --- */
.site-footer {
    position: relative;
    background: rgba(0, 5, 15, 0.95);
    border-top: 1px solid var(--color-accent);
    overflow: hidden;
}

.footer-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.02) 2px,
        rgba(0, 255, 255, 0.02) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.1rem;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.footer-tag {
    font-family: 'Exo 2', monospace;
    font-size: 0.65rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    color: var(--color-muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    color: var(--color-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom span {
    font-family: 'Exo 2', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }
}
