/* Core Layout & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
}

/* Landing Page Layout */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.top-nav {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #6366f1;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid #818cf8;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.6);
}

/* Landing Page Hero Container */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.banner-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.hero-banner {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -10px rgba(99, 102, 241, 0.25);
}

/* Feed Page Layout & Container */
.container {
    max-width: 600px;
    margin: 40px auto 20px auto;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.site-link {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s;
}

.site-link:hover {
    color: #c084fc;
}

/* Utility Helpers */
.hidden {
    display: none !important;
}

/* Auth Bar */
.auth-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.btn-small {
    padding: 6px 12px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #4f46e5;
}

/* Tabs & Button Controls */
.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Forms & Inputs */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.875rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #818cf8;
}

input[type="file"] {
    font-size: 0.8rem;
    color: #94a3b8;
}

button[type="submit"] {
    padding: 10px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #4f46e5;
}

button[type="submit"]:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* Unauthenticated Notice Banner */
.login-notice-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.login-notice-box p {
    margin: 0 0 10px 0;
    color: #cbd5e1;
}

.login-notice-btn {
    padding: 8px 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-notice-btn:hover {
    background: #4f46e5;
}

/* Feed Cards & List */
.messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-author {
    font-weight: 600;
    color: #818cf8;
}

.msg-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.msg-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.msg-img {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 6px;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #dc2626;
}

.empty-msg {
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

.error-msg {
    color: #ef4444;
    text-align: center;
    padding: 20px 0;
}

/* Follow / Unfollow Buttons */
.btn-follow {
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-follow:hover {
    background: #4f46e5;
}

.btn-unfollow {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-unfollow:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}
/* Blurred 18+ Image Filter */
.blurred-image {
    filter: blur(25px);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.blurred-image:hover,
.blurred-image.unblurred {
    filter: blur(0px);
}

.nsfw-overlay-container {
    position: relative;
    display: inline-block;
    width: 100%;
}