/* General Body Styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header Styling */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Beta Text */
.beta-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Subtitle */
.subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Buttons */
button {
    font-family: inherit;
    font-weight: 500;
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem;
    width: auto;
    min-width: 120px;
}

button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Login & Logout Buttons */
#logout-button {
    background-color: #ef4444;
}

#logout-button:hover {
    background-color: #dc2626;
}

#login-button {
    background-color: #3b82f6;
}

#login-button:hover {
    background-color: #2563eb;
}

/* Post Section */
#post-section {
    background: rgba(30, 41, 59, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

#post-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Reply Button */
.reply-button {
    background: transparent;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border: 1px solid #334155;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.reply-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

/* Reply Form */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 0.5rem;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-actions button {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.reply-actions button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Replies Section */
.replies {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.reply {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
}

.reply:last-child {
    margin-bottom: 0;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-header strong {
    color: #e2e8f0;
    font-size: 0.875rem;
}

.reply p {
    color: #e2e8f0;
    font-size: 0.875rem;
    margin: 0;
}

.char-count {
    color: #94a3b8;
    font-size: 0.875rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Posts */
.post {
    background: rgba(30, 41, 59, 0.3);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Like Button */
.like-button {
    background: transparent;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border: 1px solid #334155;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.like-button:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    color: #f87171;
    transform: translateY(-1px);
}

.like-button.liked {
    background: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
    color: #f87171;
}

.like-button.liked:hover {
    background: rgba(248, 113, 113, 0.25);
}

/* Badges */
.badge-owner, .badge-mod, .badge-official, .badge-bugtester {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-owner {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.badge-mod {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.badge-official {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.badge-bugtester {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* Timestamp */
.timestamp {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-left: auto;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    button {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Auth Form Styles */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.primary-button {
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1rem 0;
}

.primary-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #2563eb;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e2e8f0;
}
