/* AgriNovel Social App Styles */
:root {
    --ans-bg: #000;
    --ans-text: #fff;
    --ans-accent: #0095f6;
    --ans-border: #333;
    --ans-nav-height: 60px;
}

#ans-app-container {
    background: var(--ans-bg);
    color: var(--ans-text);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding-bottom: var(--ans-nav-height);
    border: 1px solid var(--ans-border);
}

/* Header */
.ans-header {
    padding: 15px;
    border-bottom: 1px solid var(--ans-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--ans-bg);
    z-index: 10;
}

.ans-logo {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Cursive', sans-serif;
    /* Fallback for Instagram-like font */
}

/* Feed */
.ans-feed {
    padding: 0;
}

.ans-post {
    margin-bottom: 20px;
}

.ans-post-header {
    padding: 10px;
    display: flex;
    align-items: center;
}

.ans-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.ans-username {
    font-weight: bold;
    font-size: 14px;
}

.ans-verified-badge {
    color: var(--ans-accent);
    margin-left: 4px;
}

.ans-post-image {
    width: 100%;
    height: auto;
    display: block;
}

.ans-post-actions {
    padding: 10px;
    display: flex;
    gap: 15px;
}

.ans-action-btn {
    background: none;
    border: none;
    color: var(--ans-text);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
}

.ans-post-likes {
    padding: 0 10px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.ans-post-caption {
    padding: 0 10px;
    font-size: 14px;
}

.ans-post-date {
    padding: 5px 10px;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

/* Bottom Nav */
.ans-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: var(--ans-nav-height);
    background: var(--ans-bg);
    border-top: 1px solid var(--ans-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
}

.ans-nav-item {
    color: var(--ans-text);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.ans-nav-item.active {
    opacity: 1;
}

/* Login Screen */
.ans-login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    padding: 20px;
}

.ans-login-btn-container {
    margin-top: 20px;
}

/* Upload Screen */
.ans-upload-screen {
    padding: 20px;
}

.ans-upload-preview {
    width: 100%;
    min-height: 200px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #888;
}

.ans-upload-preview img {
    max-width: 100%;
}

.ans-input,
.ans-textarea {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.ans-btn {
    width: 100%;
    background: var(--ans-accent);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}