/* Style CSS for Corvx // portal */

/* Variables */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #161616;
    
    --border-color: #262626;
    --border-hover: #ffffff;
    --border-active: #525252;
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    
    --transition-speed: 0.2s;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    
    --shadow-flat: 4px 4px 0px #000000;
    --shadow-hover: 6px 6px 0px var(--border-color);
}

/* Reset and Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* STRICT CONSTRAINT: No rounded corners */
}

html, body {
    background-color: var(--bg-primary);
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Custom Selection */
::selection {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Layout Wrapper */
.site-container {
    max-width: 1500px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.site-container.revealed {
    opacity: 1;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Core Box Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.1s ease,
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    box-shadow: var(--shadow-flat);
    transform-style: preserve-3d;
}

/* 3D Parallax lift for card children */
.card > * {
    transform: translateZ(15px);
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--text-primary);
    border-left: 1.5px solid var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1.5px solid var(--text-primary);
    border-right: 1.5px solid var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.card:hover {
    border-color: var(--text-secondary);
    box-shadow: var(--shadow-hover);
    transform: translate(-2px, -2px);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

/* Grid Spans (Desktop) */
.profile-card {
    grid-column: span 5;
}

.links-card {
    grid-column: span 7;
}

.audio-player-card {
    grid-column: span 7;
}

.info-card {
    grid-column: span 5;
}

.showcase-card {
    grid-column: span 7;
}

.friends-card {
    grid-column: span 5;
}

.action-card {
    grid-column: span 12;
    padding: 0; /* Clear padding to let button stretch full card size */
    overflow: hidden;
    display: flex;
}

/* Card Header Components */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

/* Signature placeholder under profile status */
.signature-placeholder {
    width: 180px;
    height: 48px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.signature-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Signature styling when placed inside the info card (full width bottom) */
.info-card .signature-placeholder {
    width: 100%;
    height: 120px;
    margin-top: auto;
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card .signature-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Make the info card arrange content vertically so signature can sit at the bottom */
.info-card {
    display: flex;
    flex-direction: column;
}

.signature-hint {
    opacity: 0.85;
}

.card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Fixed top-left corner GIF overlay */
.corner-gif {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 120px;
    height: auto;
    z-index: 9999;
    pointer-events: none;
}

/* Profile Card Styling */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.card:hover .profile-avatar {
    filter: grayscale(0%);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff; /* pure white status dot */
    display: inline-block;
    animation: pulse 2s infinite alternate;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.meta-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.meta-value {
    color: var(--text-secondary);
}

/* Links Card List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
}

.link-item:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-secondary);
    transform: translateX(4px);
}

.link-details {
    display: flex;
    flex-direction: column;
}

.link-index {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.link-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.link-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.link-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.link-item:hover .link-arrow {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* Spotify Status Widget */
.spotify-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.spotify-track-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.spotify-album-art {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.album-art-fallback {
    width: 100%;
    height: 100%;
}

.spotify-track-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spotify-track-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.spotify-track-album {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.spotify-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spotify-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
}

.spotify-progress-fill {
    height: 100%;
    background-color: var(--text-secondary);
    width: 0%;
    transition: width 1s linear;
}

.spotify-time-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* System/Telemetry Card styling */
.system-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.system-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.system-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.system-val {
    font-size: 0.85rem;
    color: var(--text-primary);
}


/* Copy Discord Button Card */
.action-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background-color: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-speed) ease;
}

.action-btn:hover {
    background-color: var(--bg-secondary);
}

.action-title {
    display: flex;
    flex-direction: column;
}

.btn-primary-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-sub-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-icon {
    color: var(--text-muted);
    transition: transform var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.action-btn:hover .action-icon {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Audio Player Card styling */
.player-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.player-disc-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    animation: spin 8s linear infinite;
    animation-play-state: paused;
}

.audio-player-card.playing .vinyl-record {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-track-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-track-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-file {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.player-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    cursor: pointer;
    position: relative;
}

.player-progress-fill {
    height: 100%;
    background-color: var(--text-secondary);
    width: 0%;
    transition: width 0.1s linear;
}

.player-progress-bar:hover .player-progress-fill {
    background-color: var(--text-primary);
}

.player-time-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-top: auto;
}

.player-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.player-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.player-btn.btn-play {
    width: 42px;
    height: 42px;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.player-btn.btn-play:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.player-btn.active {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.player-volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0 2px;
    opacity: 0.7;
}

.player-volume-row:hover {
    opacity: 1;
}

.player-volume-slider {
    flex: 1;
    height: 2px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--text-secondary);
    cursor: pointer;
}

.player-volume-slider:hover::-webkit-slider-thumb {
    background: var(--text-primary);
}


.showcase-content {
    display: flex;
    gap: 20px;
    height: 100%;
    min-height: 280px;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1.2;
}

.showcase-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.showcase-item:hover, .showcase-item.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.spec-index {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.showcase-display {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

.display-frame {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 220px;
}

#setup-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    filter: grayscale(100%);
}

.showcase-display:hover #setup-preview-img {
    filter: grayscale(0%);
}

.display-specs {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    line-height: 1.3;
}

/* Network Graph Container styling */
#network-viewport {
    width: 100%;
    height: 380px;
    border: 1px solid var(--border-color);
    background-color: #060606;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 16px 16px;
}

#network-viewport:active {
    cursor: grabbing;
}

#network-space {
    width: 800px;
    height: 600px;
    position: absolute;
    transform-origin: 0 0;
}

.network-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Toggle cube control (3D faux cube) */
.network-cube {
    /* cluster controller looks like a friend box with emphasis */
    position: absolute;
    width: 96px;
    height: 96px;
    cursor: grab;
    z-index: 18;
    transition: transform 0.28s ease, opacity 0.25s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-secondary);
}

.network-cube .node-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-primary);
}

.network-cube .node-avatar-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Collapsed friend nodes (hidden state) */
.friend-node.collapsed {
    opacity: 0;
    transform: scale(0.6) translateY(-8px) !important;
    pointer-events: none;
}

.friend-node {
    transition: opacity 0.32s ease, transform 0.32s ease;
}

/* Connection line drawing */
.network-svg path {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1.5;
    stroke-dasharray: 4;
    transition: stroke var(--transition-speed) ease, stroke-width var(--transition-speed) ease;
}

/* Node Styling */
.network-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 6px;
    width: 86px;
    height: 86px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    z-index: 10;
}

.network-node:hover, .network-node.dragging {
    border-color: var(--text-primary);
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.05);
}

.network-node.host-node {
    width: 96px;
    height: 96px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-secondary);
    z-index: 12;
}

.network-node.host-node:hover {
    border-color: var(--text-primary);
}

.node-avatar-box {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 4px;
    background-color: var(--bg-primary);
    pointer-events: none;
}

.host-node .node-avatar-box {
    width: 40px;
    height: 40px;
}

.node-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-speed) ease;
}

.network-node:hover .node-avatar,
.network-node.dragging .node-avatar {
    filter: grayscale(0%);
}

.node-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.network-node:hover .node-label,
.network-node.dragging .node-label {
    color: var(--text-primary);
}

.node-desc {
    display: none;
    font-family: var(--font-sans);
    font-size: 0.5rem;
    color: var(--text-muted);
    white-space: nowrap;
    pointer-events: none;
    margin-top: 1px;
    text-transform: uppercase;
}

.network-node:hover .node-desc,
.network-node.dragging .node-desc {
    color: var(--text-secondary);
}

/* Controls overlay */
.network-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.ctrl-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2px 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    transition: border-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.ctrl-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Terminal Chatbox Widget */
.terminal-chatbox {
    margin-top: 16px;
    background-color: #080808;
    border: 1px solid var(--border-color);
    padding: 12px;
    height: 145px;
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chatbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.chatbox-title {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.chatbox-status {
    font-size: 0.65rem;
    text-transform: uppercase;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    color: var(--text-muted);
}

.chatbox-status.connected {
    color: var(--text-primary);
    border-color: var(--text-primary);
    animation: pulse 1s infinite alternate;
}

.chatbox-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-line {
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

.chat-line.system {
    color: var(--text-muted);
}

.chat-line.peer {
    color: var(--text-primary);
}

/* Grayscale link styling */
.terminal-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--text-primary);
    padding: 0 2px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.terminal-link:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-bottom-style: solid;
}

/* Scramble text styling */
.scrambled-redacted {
    font-family: var(--font-mono);
    background-color: #1a1a1a;
    color: var(--text-primary);
    border-left: 2px solid var(--text-muted);
    padding: 0 4px;
    letter-spacing: 0.05em;
    display: inline-block;
}


/* Footer styling */
.site-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-left {
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

@keyframes log-fade {
    to {
        opacity: 1;
    }
}

@keyframes card-reveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered Card Entrance Animations */
.site-container.revealed .card {
    animation: card-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-container.revealed #card-profile { animation-delay: 0.05s; }
.site-container.revealed #card-links { animation-delay: 0.1s; }
.site-container.revealed #card-audio-player { animation-delay: 0.15s; }
.site-container.revealed #card-system { animation-delay: 0.2s; }
.site-container.revealed #card-setup { animation-delay: 0.25s; }
.site-container.revealed #card-friends { animation-delay: 0.3s; }
.site-container.revealed #card-copy-discord { animation-delay: 0.35s; }

/* Startup Overlay Styling */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    padding: 20px;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.startup-overlay.finished {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.startup-terminal {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terminal-logs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 130px;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}

.startup-log-line {
    opacity: 0;
    animation: log-fade 0.15s forwards;
    line-height: 1.4;
}

.startup-bar-container {
    width: 100%;
    height: 2px;
    background-color: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.startup-bar-fill {
    height: 100%;
    background-color: var(--text-primary);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Utility Classes */
.font-mono {
    font-family: var(--font-mono);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .profile-card {
        grid-column: span 12;
    }
    .links-card {
        grid-column: span 12;
    }
    .audio-player-card {
        grid-column: span 12;
    }
    .info-card {
        grid-column: span 12;
    }
    .showcase-card {
        grid-column: span 12;
    }
    .friends-card {
        grid-column: span 12;
    }
    .action-card {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .grid-layout {
        gap: 16px;
    }
    .site-container {
        padding: 20px 16px;
    }
    .username {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .showcase-content {
        flex-direction: column;
    }
    .showcase-display {
        min-height: 180px;
    }
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}
