/* Modern Create Post System */
/* Clean design matching the site's aesthetic */

.create-post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.create-post-overlay.active {
    opacity: 1;
    visibility: visible;
}

.create-post-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90vw, 600px);
    max-height: min(85vh, 700px);
    background: var(--secondary-bg);
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.create-post-container.active {
    transform: translate(-50%, -50%) scale(1);
}

/* Modern Create Post Header */
.create-post-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.create-post-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.create-post-title h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.create-post-title i {
    color: #4CAF50;
    font-size: 1.25rem;
    opacity: 0.9;
}

.create-post-close-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.create-post-close-btn:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.create-post-close-btn:active {
    transform: scale(0.95) rotate(90deg);
}

/* Modern Create Post Content */
.create-post-content {
    padding: 2rem 2rem 2rem;
    max-height: calc(85vh - 200px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.create-post-content::-webkit-scrollbar {
    width: 6px;
}

.create-post-content::-webkit-scrollbar-track {
    background: transparent;
}

.create-post-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.create-post-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Info Section */
.post-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
}

.post-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.post-user-details h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.post-user-details p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* Post Input Area */
.post-input-section {
    margin-bottom: 2rem;
}

.post-textarea {
    width: 100%;
    min-height: 140px;
    max-height: 350px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
}

.post-textarea:focus {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
    transform: translateY(-2px);
}

.post-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 1.1rem;
    font-weight: 400;
}

.post-char-count {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.post-char-count.warning {
    color: #ffa502;
}

.post-char-count.error {
    color: #ff4757;
}

/* Post Options */
.post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-option:hover {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.25);
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
}

.post-option.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.post-option i {
    font-size: 1rem;
    opacity: 0.8;
}

.post-option span {
    font-weight: 500;
}

/* Image Upload Area */
.image-upload-area {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.05);
}

.image-upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.image-preview {
    display: none;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #ff4757;
    transform: scale(1.1);
}



.post-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-privacy:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.post-privacy {
    position: relative;
}

.privacy-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    backdrop-filter: blur(20px);
    overflow: hidden;
    min-width: 120px;
}

.privacy-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.privacy-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.privacy-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.privacy-option i {
    color: #4CAF50;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.privacy-option span {
    font-weight: 500;
}

#privacyChevron {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-privacy i {
    font-size: 0.9rem;
    color: #4CAF50;
}



.post-btn-submit {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.post-btn-submit:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
}

.post-btn-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.post-btn-submit.cooldown-active {
    background: #6c757d !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-submit {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
}

.header-submit:hover {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3) !important;
}

.header-privacy {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header-privacy:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.post-btn-submit i {
    font-size: 1rem;
}

/* Loading State */
.post-loading {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.post-loading.active {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cooldown State */
.post-cooldown {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-primary);
}

.post-cooldown.active {
    display: flex;
}

.post-cooldown i {
    font-size: 3rem;
    color: #ffa502;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.post-cooldown h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffa502;
}

.post-cooldown p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.cooldown-timer {
    background: rgba(255, 165, 2, 0.1);
    border: 2px solid rgba(255, 165, 2, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.time-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffa502;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Success State */
.post-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-primary);
}

.post-success.active {
    display: flex;
}

.post-success i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.post-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .create-post-overlay {
        padding: 0;
    }
    
    .create-post-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translate(0, 100%);
    }
    
    .create-post-container.active {
        transform: translate(0, 0);
    }

    .create-post-header {
        padding: 1.25rem 1rem 1rem;
    }

    .create-post-title h2 {
        font-size: 1.25rem;
    }
    
    .create-post-title i {
        font-size: 1.15rem;
    }
    
    .create-post-close-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .create-post-content {
        padding: 1rem;
        max-height: calc(100vh - 180px);
    }

    .post-user-info {
        padding: 0;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .post-user-avatar {
        width: 42px;
        height: 42px;
    }
    
    .post-user-details h3 {
        font-size: 0.95rem;
    }
    
    .post-user-details p {
        font-size: 0.8rem;
    }

    .post-textarea {
        min-height: 120px;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .post-textarea::placeholder {
        font-size: 1rem;
    }

    .post-options {
        gap: 0.75rem;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .post-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 140px;
    }

    .image-upload-area {
        padding: 1.25rem;
    }
    
    .upload-icon {
        font-size: 1.75rem;
    }
    
    .upload-text {
        font-size: 0.85rem;
    }
    
    .upload-hint {
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 0.5rem;
    }
    
    .header-submit {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
    }
    
    .header-privacy {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.8rem !important;
    }
    
    .post-cooldown,
    .post-success {
        padding: 2rem 1.5rem;
    }
    
    .post-cooldown i,
    .post-success i {
        font-size: 2.5rem;
    }
    
    .post-cooldown h3,
    .post-success h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .create-post-header {
        padding: 1rem 0.75rem 0.75rem;
    }

    .create-post-title h2 {
        font-size: 1.15rem;
    }

    .create-post-close-btn {
        width: 36px;
        height: 36px;
    }

    .create-post-content {
        padding: 0.75rem;
    }
    
    .post-user-avatar {
        width: 38px;
        height: 38px;
    }
    
    .post-textarea {
        min-height: 100px;
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .post-options {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .post-option {
        justify-content: center;
        flex: 1 1 auto;
        width: 100%;
    }
    
    .image-upload-area {
        padding: 1rem;
    }
    
    .header-submit {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .header-privacy {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    .post-cooldown,
    .post-success {
        padding: 1.5rem 1rem;
    }
    
    .post-cooldown i,
    .post-success i {
        font-size: 2rem;
    }
    
    .post-cooldown h3,
    .post-success h3 {
        font-size: 1.05rem;
    }
    
    .post-cooldown p,
    .post-success p {
        font-size: 0.85rem;
    }
    
    .time-display {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .create-post-container {
        max-height: 100vh;
    }
    
    .create-post-content {
        max-height: calc(100vh - 160px);
    }
    
    .post-textarea {
        min-height: 80px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.post-user-info,
.post-input-section,
.post-options,
.image-upload-area {
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-user-info { animation-delay: 0.1s; }
.post-input-section { animation-delay: 0.2s; }
.post-options { animation-delay: 0.3s; }
.image-upload-area { animation-delay: 0.4s; }

/* Focus States for Accessibility */
.create-post-close-btn:focus,
.post-option:focus,
.post-btn-cancel:focus,
.post-btn-submit:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.post-textarea:focus {
    outline: none;
    transform: scale(1.1);
}







.post-privacy {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 0.75rem;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    font-size: 0.85rem;

    color: var(--text-secondary);

    cursor: pointer;

    transition: all 0.3s ease;

}



.post-privacy:hover {

    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.2);

}



.post-privacy {

    position: relative;

}



.privacy-dropdown {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    right: 0;

    background: var(--secondary-bg);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-5px);

    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);

    z-index: 100;

    backdrop-filter: blur(20px);

    overflow: hidden;

    min-width: 120px;

}



.privacy-dropdown.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.privacy-option {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 0.75rem;

    cursor: pointer;

    transition: all 0.2s ease;

    font-size: 0.85rem;

    color: var(--text-primary);

}



.privacy-option:hover {

    background: rgba(255, 255, 255, 0.05);

}



.privacy-option i {

    color: #4CAF50;

    font-size: 0.85rem;

    width: 16px;

    text-align: center;

}



.privacy-option span {

    font-weight: 500;

}



#privacyChevron {

    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

}



.post-privacy i {

    font-size: 0.9rem;

    color: #4CAF50;

}







.post-btn-submit {

    background: linear-gradient(135deg, #4CAF50, #45a049);

    color: white;

    border: none;

    padding: 1rem 2.5rem;

    border-radius: 14px;

    cursor: pointer;

    font-size: 1rem;

    font-weight: 600;

    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);

    display: flex;

    align-items: center;

    gap: 0.75rem;

    letter-spacing: 0.02em;

}



.post-btn-submit:hover {

    background: linear-gradient(135deg, #45a049, #4CAF50);

    transform: translateY(-3px);

    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);

}



.post-btn-submit:disabled {

    background: rgba(255, 255, 255, 0.1);

    color: var(--text-secondary);

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}



.header-submit {

    padding: 0.75rem 1.5rem !important;

    font-size: 0.9rem !important;

    border-radius: 10px !important;

    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;

}



.header-submit:hover {

    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3) !important;

}



.header-privacy {

    padding: 0.5rem 0.75rem !important;

    font-size: 0.85rem !important;

    border-radius: 8px !important;

    background: rgba(255, 255, 255, 0.06) !important;

    border: 1px solid rgba(255, 255, 255, 0.1) !important;

}



.header-privacy:hover {

    background: rgba(255, 255, 255, 0.08) !important;

}



.post-btn-submit i {

    font-size: 1rem;

}



/* Loading State */

.post-loading {

    display: none;

    align-items: center;

    justify-content: center;

    padding: 2rem;

    gap: 0.75rem;

    color: var(--text-secondary);

}



.post-loading.active {

    display: flex;

}



.loading-spinner {

    width: 20px;

    height: 20px;

    border: 2px solid rgba(255, 255, 255, 0.1);

    border-top: 2px solid #4CAF50;

    border-radius: 50%;

    animation: spin 1s linear infinite;

}



@keyframes spin {

    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }

}



/* Success State */

.post-success {

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 3rem 2rem;

    text-align: center;

    color: var(--text-primary);

}



.post-success.active {

    display: flex;

}



.post-success i {

    font-size: 3rem;

    color: #4CAF50;

    margin-bottom: 1rem;

}



.post-success h3 {

    font-size: 1.25rem;

    font-weight: 600;

    margin-bottom: 0.5rem;

}



.post-success p {

    color: var(--text-secondary);

    font-size: 0.9rem;

    opacity: 0.8;

}



/* Mobile Responsiveness */

@media (max-width: 768px) {

    .create-post-container {

        width: 95vw;

        max-height: 90vh;

        border-radius: 16px;

    }



    .create-post-header {

        padding: 1.5rem 1.5rem 1rem;

    }



    .create-post-title h2 {

        font-size: 1.3rem;

    }



    .create-post-content {

        padding: 1rem 1.5rem 1.5rem;

    }



    .post-user-info {

        padding: 0;

        gap: 6px;

    }



    .post-user-avatar {

        width: 40px;

        height: 40px;

    }



    .post-textarea {

        min-height: 100px;

        padding: 1rem;

        font-size: 0.95rem;

    }



    .post-options {

        gap: 0.75rem;

        padding: 0.75rem;

    }



    .post-option {

        padding: 0.5rem 0.75rem;

        font-size: 0.85rem;

    }



    .image-upload-area {

        padding: 1rem;

    }



    .post-actions {

        flex-direction: column;

        align-items: stretch;

        gap: 1rem;

    }



    .post-buttons {

        justify-content: space-between;

    }



    .post-btn-cancel,

    .post-btn-submit {

        flex: 1;

        justify-content: center;

    }

}



@media (max-width: 480px) {

    .create-post-container {

        width: 98vw;

        max-height: 95vh;

        border-radius: 12px;

    }



    .create-post-header {

        padding: 1.25rem 1rem 0.75rem;

    }



    .create-post-title h2 {

        font-size: 1.2rem;

    }



    .create-post-close-btn {

        width: 36px;

        height: 36px;

    }



    .create-post-content {

        padding: 0.75rem 1rem 1rem;

    }



    .post-options {

        flex-direction: column;

        gap: 0.5rem;

    }



    .post-option {

        justify-content: center;

    }

}



/* Animations */

@keyframes slideInUp {

    from {

        transform: translateY(20px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}



.post-user-info,

.post-input-section,

.post-options,

.image-upload-area {

    animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

}



.post-user-info { animation-delay: 0.1s; }

.post-input-section { animation-delay: 0.2s; }

.post-options { animation-delay: 0.3s; }

.image-upload-area { animation-delay: 0.4s; }



/* Focus States for Accessibility */

.create-post-close-btn:focus,

.post-option:focus,

.post-btn-cancel:focus,

.post-btn-submit:focus {

    outline: 2px solid #4CAF50;

    outline-offset: 2px;

}



.post-textarea:focus {

    outline: none;

}
