/* SOFI Feeds Navigation Footer (Instagram-style) */

.feeds-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    width: 100%;
    /* Safe area: Add padding for home indicator */
    padding-bottom: var(--sab);
    background: #0a0e1a;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.feeds-nav-item {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.2s ease;
    position: relative;
}

.feeds-nav-item:active {
    transform: scale(0.9);
}

.feeds-nav-item.active {
    color: #00d09c;
}

.feeds-nav-item i {
    transition: all 0.2s ease;
}

.feeds-nav-item:hover i {
    transform: scale(1.1);
}

/* Create Post Modal */
.create-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.create-post-modal.active {
    opacity: 1;
}

.create-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.create-post-container {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    background: #0a0e1a;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    z-index: 1;
}

.create-post-modal.active .create-post-container {
    transform: translateY(0);
}

.create-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.create-post-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.create-post-back {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

.create-post-publish {
    background: #00d09c;
    border: none;
    color: #0a0e1a;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-publish:hover {
    background: #01b88d;
    transform: scale(1.05);
}

.create-post-publish:active {
    transform: scale(0.95);
}

/* Post Types Tabs */
.create-post-types {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
    overflow-x: auto;
}

.post-type-btn {
    background: #1a1a1a;
    border: 2px solid transparent;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.post-type-btn:hover {
    background: #252525;
}

.post-type-btn.active {
    background: #00d09c;
    color: #0a0e1a;
    border-color: #00d09c;
}

.post-type-btn i {
    font-size: 20px;
}

/* Post Content Input */
.create-post-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.post-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-textarea {
    width: 100%;
    min-height: 200px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.post-textarea::placeholder {
    color: #666;
}

.post-char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.post-upload-area {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-upload-area:hover {
    border-color: #00d09c;
    background: rgba(0, 208, 156, 0.05);
}

.post-upload-area p {
    margin: 8px 0 0 0;
    color: #999;
}

.post-image-preview,
.post-video-preview,
.post-carousel-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.remove-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-preview-btn:hover {
    background: rgba(255, 59, 92, 0.9);
    transform: scale(1.1);
}

.post-caption {
    width: 100%;
    min-height: 80px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    padding: 12px;
    resize: none;
    outline: none;
}

.post-caption::placeholder {
    color: #666;
}

.post-caption:focus {
    border-color: #00d09c;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.carousel-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Post Options */
.create-post-options {
    padding: 16px 20px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-option-btn {
    background: #1a1a1a;
    border: none;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.post-option-btn:hover {
    background: #252525;
}

.post-option-btn i {
    font-size: 20px;
    color: #00d09c;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .feeds-bottom-nav {
        height: 56px;
    }
    
    .feeds-nav-item i {
        font-size: 26px;
    }
}
