/* PROJECT ELIA - Pages Stylesheet */

.page-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.narrative-text {
    max-width: 800px;
    width: 100%;
    line-height: 1.8;
    font-size: 14px;
    padding-bottom: 2rem;
}

@media (max-width: 1024px) {
    .narrative-text {
        font-size: 12px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .narrative-text {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .page-content {
        padding: 1rem;
    }
}

.narrative-text h1 {
    font-size: 16px;
    margin-bottom: 2rem;
    color: var(--primary-text);
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .narrative-text h1 {
        font-size: 12px;
        margin-bottom: 1rem;
    }
}

.narrative-text p {
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.spacer {
    height: 2rem;
}

@media (max-width: 768px) {
    .spacer {
        height: 1rem;
    }
}

/* Navigation buttons */
.navigation-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
}

.nav-button {
    color: var(--primary-text);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border: var(--border-width) solid var(--border-color);
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.nav-button:hover,
.nav-button:focus {
    background: var(--primary-text);
    color: var(--primary-bg);
    outline: none;
}

/* File browser styles */
.file-browser {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: var(--border-width) solid var(--border-color);
}

.file-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-item a {
    color: var(--primary-text);
    text-decoration: none;
    flex: 1;
}

.file-item a:hover {
    text-decoration: underline;
}

.file-icon {
    margin-right: 1rem;
    font-size: 16px;
}

.file-size {
    color: var(--gray-text);
    font-size: 10px;
    margin-left: 1rem;
}

/* Terminal styles */
.terminal-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 300px);
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    border: var(--border-width) solid var(--border-color);
    margin-bottom: 1rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: #0f0;
}

.terminal-input-area {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.terminal-input-area span {
    color: #0f0;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: var(--border-width) solid var(--border-color);
    color: var(--primary-text);
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.terminal-input:focus {
    outline: none;
    border-color: #0f0;
}

/* Room/Gallery styles */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .room-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

.room-item {
    border: var(--border-width) solid var(--border-color);
    padding: 1rem;
    transition: transform 0.2s;
}

.room-item:hover {
    transform: scale(1.02);
}

.room-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.room-item-title {
    font-size: 12px;
    text-align: center;
}

/* User profile styles */
.user-profile {
    max-width: 600px;
    width: 100%;
    padding-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h2 {
    font-size: 14px;
    margin-bottom: 1rem;
    color: #0f0;
}

.profile-field {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 12px;
}

.profile-label {
    min-width: 120px;
    color: var(--gray-text);
}

.profile-value {
    color: var(--primary-text);
}

/* Warning/System message styles */
.warning-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    padding-bottom: 2rem;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 2rem;
    color: #ff0;
}

.warning-title {
    font-size: 18px;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.warning-message {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.warning-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .warning-actions {
        flex-direction: column;
    }
}

/* ASCII Art container */
.ascii-art {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    line-height: 1;
    white-space: pre;
    text-align: center;
    margin: 2rem 
    }
/* Additional Responsive Fixes for 100% Zoom */
@media (max-width: 1400px) {
    .narrative-text {
        font-size: 13px;
    }
    
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .narrative-text {
        font-size: 12px;
    }
    
    .user-profile {
        max-width: 100%;
        padding: 0 1rem 2rem 1rem;
    }
    
    .warning-container {
        max-width: 100%;
        padding: 0 1rem 2rem 1rem;
    }
    
    .file-browser {
        max-width: 100%;
        padding: 0 0 2rem 0;
    }
}

/* Ensure all content containers are scrollable */
.content-area {
    overflow: hidden;
}

.page-content {
    box-sizing: border-box;
}

.narrative-text,
.user-profile,
.warning-container,
.file-browser,
.terminal-container {
    box-sizing: border-box;
}

/* Fix marketplace for responsiveness */
.marketplace-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.marketplace-item {
    box-sizing: border-box;
}