.square-tabs {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-bottom: none;
    justify-content: center;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid #e9ecef;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.posts-container {
    padding: 15px;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    cursor: pointer;
}

.username:hover {
    color: #667eea;
}

.post-time {
    font-size: 0.85em;
    color: #999;
}

.follow-btn {
    padding: 6px 16px;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    background: #667eea;
    color: white;
}

.follow-btn.following {
    background: #e9ecef;
    border-color: #e9ecef;
    color: #666;
}

.post-content {
    margin-bottom: 15px;
}

.post-date {
    font-size: 1.1em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.post-schedule {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.schedule-item-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9em;
    color: #666;
}

.post-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.post-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f4;
}

.post-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thoughts {
    padding: 12px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    margin: 10px 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.actions-left {
    display: flex;
    gap: 20px;
}

.delete-post-btn {
    color: #dc3545;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f8f9fa;
}

.action-btn.liked {
    color: #e74c3c;
}

.action-btn i {
    font-size: 16px;
}

.comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.comment-item {
    padding: 10px 0;
    font-size: 0.9em;
}

.comment-user {
    font-weight: 600;
    color: #667eea;
    margin-right: 8px;
}

.comment-text {
    color: #333;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.comment-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
}

.comment-input button {
    padding: 10px 20px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4em;
    color: #e9ecef;
    margin-bottom: 20px;
}

.platform-btn.square {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 10000;
    min-width: 150px;
}

.menu-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item i {
    color: #667eea;
    width: 16px;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
}

.share-modal-content h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-options button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-options button:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.share-options button i {
    font-size: 24px;
    color: #667eea;
}

.share-options button span {
    font-size: 12px;
    color: #666;
}

.close-modal {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
