/* FriendSpace - Authentic 90s Social Network Styles */

/* Base styling */
body {
    margin: 20px;
    font-family: 'MS Sans Serif', sans-serif;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="%23c0c0c0"/><rect x="0" y="0" width="1" height="1" fill="%23808080"/></svg>');
}

/* Force nearest-neighbor interpolation on ALL images for pixel-perfect retro look */
img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Friend status button styles */
button[style*="backgroundColor: #ffcc99"] {
    /* Pending request button */
    border: 2px outset #ffcc99 !important;
}

button[style*="backgroundColor: #ffcccc"] {
    /* Friends button */
    border: 2px outset #ffcccc !important;
}

button[style*="backgroundColor: #f0f0f0"] {
    /* Try again button */
    border: 2px outset #f0f0f0 !important;
}

/* Layout containers */
.main-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-container-wide {
    max-width: 1000px;
    margin: 0 auto;
}

.content-area {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 250px;
}

.main-content {
    flex: 1;
}

/* Header and logo */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    font-size: 36px;
    color: #000080;
    text-shadow: 2px 2px 0px #c0c0c0; /* NO BLUR - crisp pixel shadow */
    margin: 0;
}

.logo p {
    font-size: 14px;
    color: #808080;
    margin: 5px 0 0 0;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #000080;
    margin: 0;
}

/* Form layouts */
.login-register-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.login-form, .register-form {
    flex: 1;
}

.form-section {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    box-sizing: border-box;
}

/* Turnstile widget (invisible) */
.turnstile-widget {
    margin: 10px 0;
    height: 0;
    overflow: hidden;
}

/* Profile card */
.profile-card {
    background: var(--profile-bg-color, #008080);
    border: 2px inset #c0c0c0;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.profile-card h2 {
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 1px 1px 0px #000; /* NO BLUR - crisp black shadow */
}

.profile-info {
    color: white;
    text-shadow: 1px 1px 0px #000; /* NO BLUR - crisp black shadow */
}

.mood-indicator {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px;
    border-radius: 3px;
    margin: 10px 0;
}

/* Edit form */
.edit-form {
    display: none;
}

/* Messages */
.error-message {
    color: #800000;
    font-weight: bold;
    margin: 10px 0;
}

.success-message {
    color: #008000;
    font-weight: bold;
    margin: 10px 0;
}

/* Navigation menu */
.navigation-menu {
    margin-bottom: 20px;
}

.navigation-menu button {
    margin: 2px;
}

/* Content sections */
.content-section {
    /* Base styling for content sections */
}

/* User browsing */
.user-list {
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #c0c0c0;
}

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

.user-info {
    flex: 1;
    margin-left: 10px;
}

.username {
    font-weight: bold;
    color: #000080;
}

.user-bio {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.mood-badge {
    background: #ffff80;
    border: 1px solid #c0c000;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 2px;
}

/* Features list */
.features-list {
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    padding: 15px;
    margin: 20px 0;
}

.features-list h3 {
    margin-top: 0;
    color: #000080;
}

.features-list ul {
    margin: 10px 0;
    padding-left: 20px;
}

.features-list li {
    margin: 5px 0;
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .login-register-container {
        flex-direction: column;
    }
    
    .content-area {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* Make sure 98.css elements also get crisp image rendering */
.window, button, input, select, textarea {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}