/* Cleaned CSS extracted from the original Vite-compiled file */

:root {
    --primary-red: #FF0000;
    --primary-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000; /* Dark background to make white glass pop */
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary-white);
    overflow: hidden; /* Hide body scroll, feed handles it */
}

/* Typography & Effects */
.neon-text {
    color: var(--primary-white);
    text-shadow:
        0 0 5px var(--primary-red),
        0 0 10px var(--primary-white);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.verified-badge {
    color: #00f2ea; /* Cyan/Blue glowing badge */
    text-shadow: 0 0 10px #00f2ea;
    margin-left: 5px;
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; text-shadow: 0 0 5px #00f2ea; }
    50% { opacity: 1; text-shadow: 0 0 15px #00f2ea; }
    100% { opacity: 0.8; text-shadow: 0 0 5px #00f2ea; }
}

/* Glass UI Components */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-white);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 0 2px var(--primary-red);
}

.glass-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px var(--primary-red);
}

.glass-btn.primary-glow {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px var(--primary-red);
}

.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-white);
    color: var(--primary-white);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin-top: 5px;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Layout */
#app {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Increase spacing between nav icons for a sleeker look */
}

/* Feed */
#feed-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.post-card {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.post-overlay {
    position: absolute;
    bottom: 80px; /* Space for mobile nav if needed, or just offset */
    left: 10px;
    right: 60px; /* Space for side actions */
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1); /* Frosted frame for caption */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-user {
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.post-caption {
    font-size: 0.9em;
    line-height: 1.4;
}

.post-actions {
    position: absolute;
    right: 10px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.action-btn:active {
    transform: scale(0.8);
}

.action-btn i {
    transition: color 0.3s;
}

.action-btn.active i {
    color: var(--primary-red);
    text-shadow: 0 0 15px var(--primary-red);
}

.action-label {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: bold;
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #ccc;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 0, 0, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.full-width {
    width: 100%;
}

/* Desktop sizing tweaks */
@media (min-width: 768px) {
    #feed-container {
        max-width: 450px; /* Mobile width on desktop */
        margin: 0 auto;
        border-left: 1px solid rgba(255, 0, 0, 0.2);
        border-right: 1px solid rgba(255, 0, 0, 0.2);
    }
}

/* Profile picture area styles */
.profile-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

/* Ensure profile image appears as a circle and fits nicely */
.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Upload hub styles */
/* Upload hub container */
.upload-hub {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 260px;
    height: 70px;
    border-radius: 35px;
    padding: 10px;
    gap: 16px;
    z-index: 150;
    /* Darker base to improve contrast against the feed */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Generic upload hub buttons */
.hub-btn {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.hub-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* Central camera button: larger and highlighted */
#camera-btn {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
}
#camera-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Delete button styling on posts */
.delete-btn {
    background: none;
    border: none;
    color: var(--primary-white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.2s;
}
.delete-btn i {
    font-size: 1.6rem;
}
.delete-btn:hover i {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

/* Modal content backgrounds for user login and sign up forms */
.login-modal-content, .signup-modal-content {
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-modal-content::before, .signup-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: inherit;
    z-index: -1;
}

/* Background images for login and signup modals */
.login-modal-content {
    background-image: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=800&q=80');
}

.signup-modal-content {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=800&q=80');
}

/* Preview image inside create post modal */
.post-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}